diff options
author | thenecromancer <none@none> | 2010-04-21 19:01:46 +0200 |
---|---|---|
committer | thenecromancer <none@none> | 2010-04-21 19:01:46 +0200 |
commit | 3d52a41e6b0293614d118824f638aa50ab4ba985 (patch) | |
tree | c7b5492d2c5bd9c95e7a0cb0720a28085909206e /src | |
parent | 3ea6bc08db3ab2bc0aade37205fd25763a82b7f5 (diff) |
Fix Intervene and alikes (unlike spell magnets, intervene alikes are actualy just a single target auras so we need to get caster, not owner)
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index fd39d86849d..db1a5c4fcbb 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9483,7 +9483,7 @@ Unit* Unit::SelectMagnetTarget(Unit *victim, SpellEntry const *spellInfo) { AuraEffectList const& hitTriggerAuras = victim->GetAuraEffectsByType(SPELL_AURA_ADD_CASTER_HIT_TRIGGER); for (AuraEffectList::const_iterator i = hitTriggerAuras.begin(); i != hitTriggerAuras.end(); ++i) - if (Unit* magnet = (*i)->GetBase()->GetUnitOwner()) + if (Unit* magnet = (*i)->GetBase()->GetCaster()) if (magnet->isAlive() && magnet->IsWithinLOSInMap(this)) if (roll_chance_i((*i)->GetAmount())) { |