aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatan Shukry <matanshukry@gmail.com>2021-02-09 13:00:02 +0200
committerGitHub <noreply@github.com>2021-02-09 12:00:02 +0100
commit414338a27b2468f29c5bded607b8cbc145050ba9 (patch)
tree8b94b9483651104d44cf937d20ee0a576c70d274 /src
parente9357dc7f29fc15a72a3dc25b647d577dc979db8 (diff)
Scripts/Spells: Druid Travel Form freeze fix (#26056)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp
index 1075e7b0324..8740ab9ef0b 100644
--- a/src/server/scripts/Spells/spell_druid.cpp
+++ b/src/server/scripts/Spells/spell_druid.cpp
@@ -1118,6 +1118,9 @@ public:
void AfterRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
+ if (triggeredSpellId == m_scriptSpellId)
+ return;
+
Player* player = GetTarget()->ToPlayer();
if (triggeredSpellId) // Apply new form