use 3D range check for mob attacks
This commit is contained in:
@@ -234,7 +234,7 @@ public class StandardMob {
|
||||
ItemBase mainHand = mob.getWeaponItemBase(true);
|
||||
ItemBase offHand = mob.getWeaponItemBase(false);
|
||||
|
||||
if(!CombatUtilities.inRange2D(mob,mob.combatTarget,mob.getRange()))
|
||||
if(!CombatUtilities.inRangeToAttack(mob,mob.combatTarget))
|
||||
return;
|
||||
|
||||
InterestManager.setObjectDirty(mob);
|
||||
|
||||
Reference in New Issue
Block a user