*Fix a bug that Prayer of Shadow Protection cannot be casted on other party.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-27 16:37:55 -06:00
parent 231cb0f5a7
commit f286c83d15

View File

@@ -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())