Fix for AE taunt to use correct range and hate modifier.

Fix for spell effect version of taunt to use correct range.
This commit is contained in:
KayenEQ
2016-03-24 16:26:29 -04:00
parent 8cbcd48461
commit fc5d6bd792
6 changed files with 20 additions and 18 deletions
+3 -3
View File
@@ -712,10 +712,10 @@ void Client::SendDisciplineTimer(uint32 timer_id, uint32 duration)
}
}
void EntityList::AETaunt(Client* taunter, float range)
void EntityList::AETaunt(Client* taunter, float range, int32 bonus_hate)
{
if (range == 0)
range = 100; //arbitrary default...
range = 40; //Live AE taunt range - Hardcoded.
range = range * range;
@@ -729,7 +729,7 @@ void EntityList::AETaunt(Client* taunter, float range)
&& taunter->IsAttackAllowed(them)
&& DistanceSquaredNoZ(taunter->GetPosition(), them->GetPosition()) <= range) {
if (taunter->CheckLosFN(them)) {
taunter->Taunt(them, true);
taunter->Taunt(them, true,0,true,bonus_hate);
}
}
++it;