MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / QuickCast

Function QuickCast

Source/controls/plrctrls.cpp:2200–2213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2198}
2199
2200void QuickCast(size_t slot)
2201{
2202 MouseActionType prevMouseButtonAction = LastMouseButtonAction;
2203 Player &myPlayer = *MyPlayer;
2204 SpellID spell = myPlayer._pSplHotKey[slot];
2205 SpellType spellType = myPlayer._pSplTHotKey[slot];
2206
2207 if (ControlMode != ControlTypes::KeyboardAndMouse) {
2208 UpdateSpellTarget(spell);
2209 }
2210
2211 CheckPlrSpell(false, spell, spellType);
2212 LastMouseButtonAction = prevMouseButtonAction;
2213}
2214
2215} // namespace devilution

Callers 3

InitKeymapActionsFunction · 0.85
InitPadmapActionsFunction · 0.85
PressControllerButtonFunction · 0.85

Calls 2

UpdateSpellTargetFunction · 0.85
CheckPlrSpellFunction · 0.85

Tested by

no test coverage detected