From 1d5bbfc144313a9f4f6934f81dc02e8ba50f02a1 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 21 Oct 2021 10:52:08 +0200 Subject: [PATCH] Core/Creatures: implement a helper to reset spell focus reacquisition --- src/server/game/Entities/Creature/Creature.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/game/Entities/Creature/Creature.h b/src/server/game/Entities/Creature/Creature.h index 66d0e63ad78..8bc1b894a7a 100644 --- a/src/server/game/Entities/Creature/Creature.h +++ b/src/server/game/Entities/Creature/Creature.h @@ -347,6 +347,7 @@ class TC_GAME_API Creature : public Unit, public GridObject, 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;