Browse Source

use 3D range check for mob attacks

lakebane
FatBoy-DOTC 1 month ago
parent
commit
85e1f3434c
  1. 2
      src/engine/mobileAI/Behaviours/StandardMob.java

2
src/engine/mobileAI/Behaviours/StandardMob.java

@ -234,7 +234,7 @@ public class StandardMob {
ItemBase mainHand = mob.getWeaponItemBase(true); ItemBase mainHand = mob.getWeaponItemBase(true);
ItemBase offHand = mob.getWeaponItemBase(false); ItemBase offHand = mob.getWeaponItemBase(false);
if(!CombatUtilities.inRange2D(mob,mob.combatTarget,mob.getRange())) if(!CombatUtilities.inRangeToAttack(mob,mob.combatTarget))
return; return;
InterestManager.setObjectDirty(mob); InterestManager.setObjectDirty(mob);

Loading…
Cancel
Save