*Some update of spell target selection.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-09 10:48:14 -05:00
1 parent 3b4e4b8215
commit 6592e99f4a
4 files changed
+31 -20

No files matched your search

+1 -1
View File
@@ -1000,7 +1000,7 @@ void Aura::_AddAura()
for(std::vector<int32>::const_iterator itr = spell_triggered->begin(); itr != spell_triggered->end(); ++itr)
{
if(*itr < 0)
m_target->ApplySpellImmune(id, IMMUNITY_ID, -(*itr), m_target);
m_target->ApplySpellImmune(id, IMMUNITY_ID, -(*itr), true);
else if(Unit* caster = GetCaster())
caster->AddAura(*itr, m_target);
}