Fix issue #1437, don't remove passive auras if they're triggering spell that fails for whatever reason

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-04-03 12:32:11 +02:00
parent 6b6ee726dd
commit e50b04f657
+1 -1
View File
@@ -2700,7 +2700,7 @@ void Spell::prepare(SpellCastTargets const* targets, AuraEffect const * triggere
SpellCastResult result = CheckCast(true);
if(result != SPELL_CAST_OK && !IsAutoRepeat()) //always cast autorepeat dummy for triggering
{
if(triggeredByAura)
if(triggeredByAura && !triggeredByAura->GetBase()->IsPassive())
{
SendChannelUpdate(0);
triggeredByAura->GetBase()->SetDuration(0);