*Also call combatstart when applying areaaura/persistant aura

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-02 22:23:51 -06:00
parent f2e88cae51
commit dd2a8443d5
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -190,11 +190,15 @@ inline void Trinity::DynamicObjectUpdater::VisitHelper(Unit* target)
{ {
if (i_check->IsFriendlyTo( target )) if (i_check->IsFriendlyTo( target ))
return; return;
i_check->CombatStart(target);
} }
else else
{ {
if (!i_check->IsHostileTo( target )) if (!i_check->IsHostileTo( target ))
return; return;
i_check->CombatStart(target);
} }
// Check target immune to spell or aura // Check target immune to spell or aura
+3
View File
@@ -658,6 +658,9 @@ void AreaAura::Update(uint32 diff)
else else
aur = new AreaAura(actualSpellInfo, m_effIndex, NULL, (*tIter), caster, NULL); aur = new AreaAura(actualSpellInfo, m_effIndex, NULL, (*tIter), caster, NULL);
(*tIter)->AddAura(aur); (*tIter)->AddAura(aur);
if(m_areaAuraType == AREA_AURA_ENEMY)
caster->CombatStart(*tIter);
} }
} }
} }