Browse Source

fixed bug with trebs spamming console

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
8890826070
  1. 5
      src/engine/mobileAI/MobAI.java

5
src/engine/mobileAI/MobAI.java

@ -923,6 +923,11 @@ public class MobAI {
private static void CheckToSendMobHome(Mob mob) { private static void CheckToSendMobHome(Mob mob) {
try { try {
//trebs dont recall
if(mob.isSiege())
return;
if(mob.BehaviourType.equals(Enum.MobBehaviourType.Pet1)){ if(mob.BehaviourType.equals(Enum.MobBehaviourType.Pet1)){
if(mob.loc.distanceSquared(mob.getOwner().loc) > 60 * 60) if(mob.loc.distanceSquared(mob.getOwner().loc) > 60 * 60)
mob.teleport(mob.getOwner().loc); mob.teleport(mob.getOwner().loc);

Loading…
Cancel
Save