From 703ad48890dbd55bafd5698748322d0ccec85bbe Mon Sep 17 00:00:00 2001 From: Nay Date: Sat, 18 Feb 2012 21:26:24 +0000 Subject: Scripts/Spells: Revert a little part of spell_dru_starfall_dummy (original code) Thanks to Drago for testing Closes #5305 --- src/server/scripts/Spells/spell_druid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/server/scripts/Spells') diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index 58e63a7eb66..e0589b638da 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -341,7 +341,8 @@ class spell_dru_starfall_dummy : public SpellScriptLoader sLog->outString("triggering spell = %u",GetTriggeringSpell()->Id); Unit* caster = GetCaster(); - if (caster->IsInDisallowedMountForm() || caster->IsMounted()) + // Shapeshifting into an animal form or mounting cancels the effect + if (caster->GetCreatureType() == CREATURE_TYPE_BEAST() || caster->IsMounted()) { if (SpellInfo const* spellInfo = GetTriggeringSpell()) caster->RemoveAurasDueToSpell(spellInfo->Id); -- cgit v1.2.3