aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-27 16:37:55 -0600
committermegamage <none@none>2008-12-27 16:37:55 -0600
commitf286c83d1525ee70ea60e8cffb1c8e3433a8dca2 (patch)
treeeddeb1d262c82d122f36d6becf71387acac46be0 /src
parent231cb0f5a7707017cd37628c389c32e42f24f1fe (diff)
*Fix a bug that Prayer of Shadow Protection cannot be casted on other party.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Spell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 15259bf1af0..52aa86bcf24 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1518,10 +1518,10 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
case TARGET_UNIT_TARGET_ANY: // SelectMagnetTarget()?
case TARGET_UNIT_TARGET_PARTY:
case TARGET_UNIT_SINGLE_UNKNOWN:
- TagUnitMap.push_back(m_targets.getUnitTarget());
+ TagUnitMap.push_back(target);
break;
case TARGET_UNIT_PARTY_TARGET:
- m_caster->GetPartyMember(TagUnitMap, radius);
+ target->GetPartyMember(TagUnitMap, radius);
break;
case TARGET_UNIT_TARGET_ENEMY:
if(Unit* pUnitTarget = SelectMagnetTarget())