diff options
| author | QAston <none@none> | 2009-07-18 23:41:42 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-07-18 23:41:42 +0200 |
| commit | 53c62aceadc4d4359437a8bccbbe7993bda4e510 (patch) | |
| tree | 8cded2a08b84e1aeb6a5762018148109e93bbac9 /src/game/Unit.cpp | |
| parent | 5f3f62222670f70a0c278b76ce91601814da1f3f (diff) | |
| parent | c8342ca8ce3f49d1c53fa3bfb69f26197e032cc0 (diff) | |
*Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 5696d3e8bf8..15a52ff62f6 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1183,7 +1183,7 @@ void Unit::CastCustomSpell(uint32 spellId, CustomSpellValues const &value, Unit* } // used for scripting -void Unit::CastSpell(float x, float y, float z, uint32 spellId, bool triggered, Item *castItem, AuraEffect* triggeredByAura, uint64 originalCaster) +void Unit::CastSpell(float x, float y, float z, uint32 spellId, bool triggered, Item *castItem, AuraEffect* triggeredByAura, uint64 originalCaster, Unit* OriginalVictim) { SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId ); @@ -1203,6 +1203,8 @@ void Unit::CastSpell(float x, float y, float z, uint32 spellId, bool triggered, SpellCastTargets targets; targets.setDestination(x, y, z); + if(OriginalVictim) + targets.setUnitTarget(OriginalVictim); spell->m_CastItem = castItem; spell->prepare(&targets, triggeredByAura); } |
