aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-10-31 11:04:32 -0500
committermegamage <none@none>2008-10-31 11:04:32 -0500
commit67b86d636b9903f3fa0b53bff114c1f00bb39cc1 (patch)
tree9b73d4dd1e040502072a9d1dcfafb941c9389d99 /src/game/Unit.cpp
parentdaec9868d96501b69cdcc6d37e4900874ae96cd7 (diff)
[svn] Spell target selection improvement. Remove most mangos hacks in spell target selection. (work almost done)
Merge mangos svn rev 6744. --HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 3fed7edc22e..8427c22b677 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -5085,7 +5085,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, SpellEntry const *dummySpell, uint
RemoveAurasDueToSpell(triggeredByAura->GetId());
// Cast finish spell (triggeredByAura already not exist!)
- CastSpell(this, 27285, true, castItem, NULL, casterGuid);
+ if(Unit* caster = GetUnit(*this, casterGuid))
+ caster->CastSpell(this, 27285, true, castItem);
return true; // no hidden cooldown
}
@@ -5107,7 +5108,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, SpellEntry const *dummySpell, uint
RemoveAurasDueToSpell(triggeredByAura->GetId());
// Cast finish spell (triggeredByAura already not exist!)
- CastSpell(this, 32865, true, castItem, NULL, casterGuid);
+ if(Unit* caster = GetUnit(*this, casterGuid))
+ caster->CastSpell(this, 32865, true, castItem);
return true; // no hidden cooldown
}
// Damage counting