| 2198 | } |
| 2199 | |
| 2200 | void 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 |
no test coverage detected