*Fix Target Unit Raid.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-02-06 20:35:46 +01:00
parent 4c5f0fd6a5
commit dfd120b23c
2 changed files with 6 additions and 5 deletions
+4 -3
View File
@@ -1488,10 +1488,11 @@ void Spell::SetTargetMap(uint32 i,uint32 cur,std::list<Unit*> &TagUnitMap)
m_caster->GetPartyMember(TagUnitMap, radius);
break;
case TARGET_UNIT_RAID:
if(Unit *target = m_targets.getUnitTarget())
TagUnitMap.push_back(target);
else
//if(Unit *target = m_targets.getUnitTarget())
// TagUnitMap.push_back(target);
//else
m_caster->GetRaidMember(TagUnitMap, radius);
TagUnitMap.push_back(m_caster);
break;
}
}break;
+1 -1
View File
@@ -94,7 +94,7 @@ Unit::Unit()
m_state = 0;
m_form = FORM_NONE;
m_deathState = ALIVE;
uint64 m_auraUpdateMask;
m_auraUpdateMask = 0;
for (uint32 i = 0; i < CURRENT_MAX_SPELL; i++)
m_currentSpells[i] = NULL;