Core/Creatures: implement a helper to reset spell focus reacquisition

This commit is contained in:
Ovahlord
2021-10-21 10:52:08 +02:00
parent ef08b8f180
commit 1d5bbfc144

View File

@@ -347,6 +347,7 @@ class TC_GAME_API Creature : public Unit, public GridObject<Creature>, public Ma
void SetSpellFocus(Spell const* focusSpell, WorldObject const* target);
bool HasSpellFocus(Spell const* focusSpell = nullptr) const override;
void ReleaseSpellFocus(Spell const* focusSpell = nullptr, bool withDelay = true);
void ResetSpellFocusReacquisition() { _spellFocusInfo.delay = 0; }
bool IsMovementPreventedByCasting() const override;