mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 15:31:33 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
8e112aac03
commit
e58a022e25
@ -674,7 +674,7 @@ void EntityList::AETaunt(Client* taunter, float range)
|
|||||||
zdiff *= -1;
|
zdiff *= -1;
|
||||||
if (zdiff < 10
|
if (zdiff < 10
|
||||||
&& taunter->IsAttackAllowed(them)
|
&& taunter->IsAttackAllowed(them)
|
||||||
&& taunter->DistNoRootNoZ(*them) <= range) {
|
&& ComparativeDistanceNoZ(taunter->GetPosition(), them->GetPosition()) <= range) {
|
||||||
if (taunter->CheckLosFN(them)) {
|
if (taunter->CheckLosFN(them)) {
|
||||||
taunter->Taunt(them, true);
|
taunter->Taunt(them, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user