Browse Source

Equipset reloaded after respawn

combat-2
MagicBot 8 months ago
parent
commit
6ff26f6a25
  1. 4
      src/engine/objects/Mob.java

4
src/engine/objects/Mob.java

@ -1015,6 +1015,10 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
this.charItemManager.clearInventory(); this.charItemManager.clearInventory();
this.charItemManager.clearEquip(); this.charItemManager.clearEquip();
// Reload equipment set
this.charItemManager.equipped = MobBase.loadEquipmentSet(this.equipmentSetID);
// Only generate loot for mobiles // Only generate loot for mobiles
if (!this.agentType.equals(AIAgentType.MOBILE)) if (!this.agentType.equals(AIAgentType.MOBILE))

Loading…
Cancel
Save