*Fix area auras cast in party.

*Fix damage amount of stacked auras.

--HG--
branch : trunk
This commit is contained in:
QAston committed 2009-03-21 17:25:04 +01:00
1 parent a54957ba41
commit afd3f03835
2 files changed
+11 -4

No files matched your search

+9 -4
View File
@@ -13251,10 +13251,15 @@ void Unit::GetRaidMember(std::list<Unit*> &nearMembers, float radius)
{
Player* Target = itr->getSource();
// IsHostileTo check duel and controlled by enemy
if( Target && Target != this && Target->isAlive()
&& IsWithinDistInMap(Target, radius) && !IsHostileTo(Target) )
nearMembers.push_back(Target);
if( Target && !IsHostileTo(Target) )
{
if(Target->isAlive() && IsWithinDistInMap(Target, radius) )
nearMembers.push_back(Target);
if(Pet* pet = Target->GetPet())
if(pet->isAlive() && IsWithinDistInMap(pet, radius) )
nearMembers.push_back(pet);
}
}
}
else