Browse Source

Mobbase set properly.

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

2
src/engine/objects/Mob.java

@ -557,7 +557,7 @@ public class Mob extends AbstractIntelligenceAgent {
petMinion.guardCaptain = petOwner; petMinion.guardCaptain = petOwner;
petMinion.parentZoneUUID = parent.getObjectUUID(); petMinion.parentZoneUUID = parent.getObjectUUID();
petMinion.walkMode = false; petMinion.walkMode = false;
petMinion.healthMax = petMinion.getMobBase().getHealthMax() * (petMinion.level * 0.5f); petMinion.healthMax = MobBase.getMobBase(loadID).getHealthMax() * (petMinion.level * 0.5f);
petMinion.health.set(petMinion.healthMax); petMinion.health.set(petMinion.healthMax);
petMinion.behaviourType = MobBehaviourType.Pet1; petMinion.behaviourType = MobBehaviourType.Pet1;
petMinion.runAfterLoad(); petMinion.runAfterLoad();

Loading…
Cancel
Save