diff options
author | Chaz Brown <iamparadox@netscape.net> | 2009-04-03 00:31:08 -0400 |
---|---|---|
committer | Chaz Brown <iamparadox@netscape.net> | 2009-04-03 00:31:08 -0400 |
commit | c2dfb661e7fdfa4f24c14d1b334984cba512d63e (patch) | |
tree | 886d4d1fe51228ecfbbdc0c4d093ad866aab3a71 /src | |
parent | e84fd0e1f83ef89064e4b8b5673cbd0b68f48c0a (diff) | |
parent | dd2a8443d58aa770d91c31bbb4bf12d456a9d351 (diff) |
*Merge
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/GridNotifiersImpl.h | 4 | ||||
-rw-r--r-- | src/game/SpellAuras.cpp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h index 5f4fe8cb05b..a43a97cd898 100644 --- a/src/game/GridNotifiersImpl.h +++ b/src/game/GridNotifiersImpl.h @@ -190,11 +190,15 @@ inline void Trinity::DynamicObjectUpdater::VisitHelper(Unit* target) { if (i_check->IsFriendlyTo( target )) return; + + i_check->CombatStart(target); } else { if (!i_check->IsHostileTo( target )) return; + + i_check->CombatStart(target); } // Check target immune to spell or aura diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 4b868812b16..80ac2165a30 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -658,6 +658,9 @@ void AreaAura::Update(uint32 diff) else aur = new AreaAura(actualSpellInfo, m_effIndex, NULL, (*tIter), caster, NULL); (*tIter)->AddAura(aur); + + if(m_areaAuraType == AREA_AURA_ENEMY) + caster->CombatStart(*tIter); } } } |