mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-23 14:52:26 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
4fa102cb24
commit
93c5422966
@ -888,7 +888,7 @@ void EntityList::AEAttack(Mob *attacker, float dist, int Hand, int count, bool I
|
|||||||
&& curmob != attacker //this is not needed unless NPCs can use this
|
&& curmob != attacker //this is not needed unless NPCs can use this
|
||||||
&&(attacker->IsAttackAllowed(curmob))
|
&&(attacker->IsAttackAllowed(curmob))
|
||||||
&& curmob->GetRace() != 216 && curmob->GetRace() != 472 /* dont attack horses */
|
&& curmob->GetRace() != 216 && curmob->GetRace() != 472 /* dont attack horses */
|
||||||
&& (curmob->DistNoRoot(*attacker) <= dist2)
|
&& (ComparativeDistance(curmob->GetPosition(), attacker->GetPosition()) <= dist2)
|
||||||
) {
|
) {
|
||||||
attacker->Attack(curmob, Hand, false, false, IsFromSpell);
|
attacker->Attack(curmob, Hand, false, false, IsFromSpell);
|
||||||
hit++;
|
hit++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user