Browse Source

Behaviour type set for pets.

combat-2
MagicBot 1 year ago
parent
commit
64aaaa707e
  1. 2
      src/engine/objects/Mob.java

2
src/engine/objects/Mob.java

@ -559,7 +559,7 @@ public class Mob extends AbstractIntelligenceAgent {
petMinion.walkMode = false; petMinion.walkMode = false;
petMinion.healthMax = petMinion.getMobBase().getHealthMax() * (petMinion.level * 0.5f); petMinion.healthMax = petMinion.getMobBase().getHealthMax() * (petMinion.level * 0.5f);
petMinion.health.set(petMinion.healthMax); petMinion.health.set(petMinion.healthMax);
petMinion.behaviourType = MobBehaviourType.Pet1;
petMinion.runAfterLoad(); petMinion.runAfterLoad();
DbManager.addToCache(petMinion); DbManager.addToCache(petMinion);
createLock.writeLock().unlock(); createLock.writeLock().unlock();

Loading…
Cancel
Save