*Do not allow taunt affect passive creatures.

*Fix build.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-16 15:28:37 -05:00
1 parent e4456ae9f8
commit 09407c8757
2 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -4067,7 +4067,7 @@ void Spell::EffectTaunt(uint32 /*i*/)
unitTarget->getThreatManager().addThreat(m_caster, itsThreat - myThreat);
}
if(((Creature*)unitTarget)->IsAIEnabled)
if(((Creature*)unitTarget)->IsAIEnabled && !((Creature*)unitTarget)->HasReactState(REACT_PASSIVE))
((Creature*)unitTarget)->AI()->AttackStart(m_caster);
}