forked from MagicBane/Server
login crash bug
This commit is contained in:
@@ -1272,6 +1272,7 @@ public class CharacterItemManager {
|
|||||||
Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner());
|
Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner());
|
||||||
this.inventory.add(resource);
|
this.inventory.add(resource);
|
||||||
this.itemIDtoType.put(resource.getObjectUUID(), resource.getObjectType().ordinal());
|
this.itemIDtoType.put(resource.getObjectUUID(), resource.getObjectType().ordinal());
|
||||||
|
this.updateInventory(purge,false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
this.inventory.add(i);
|
this.inventory.add(i);
|
||||||
|
|||||||
@@ -1605,13 +1605,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
this.lastName = this.getContract().getName();
|
this.lastName = this.getContract().getName();
|
||||||
|
|
||||||
this.healthMax = this.mobBase.getHealthMax();
|
this.healthMax = this.mobBase.getHealthMax();
|
||||||
if(this.mobBase.getLevel() > 80){
|
|
||||||
if(this.getMobBaseID() == 14319){//ithriana
|
|
||||||
this.healthMax = 5400000;
|
|
||||||
} else{
|
|
||||||
this.healthMax = 1500000;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.manaMax = 0;
|
this.manaMax = 0;
|
||||||
this.staminaMax = 0;
|
this.staminaMax = 0;
|
||||||
this.setHealth(this.healthMax);
|
this.setHealth(this.healthMax);
|
||||||
@@ -1712,6 +1705,13 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
try {
|
try {
|
||||||
NPCManager.applyRuneSetEffects(this);
|
NPCManager.applyRuneSetEffects(this);
|
||||||
recalculateStats();
|
recalculateStats();
|
||||||
|
if(this.mobBase.getLevel() > 80){
|
||||||
|
if(this.getMobBaseID() == 14319){//ithriana
|
||||||
|
this.healthMax = 5400000;
|
||||||
|
} else{
|
||||||
|
this.healthMax = 1500000;
|
||||||
|
}
|
||||||
|
}
|
||||||
this.setHealth(this.healthMax);
|
this.setHealth(this.healthMax);
|
||||||
|
|
||||||
// Set bounds for this mobile
|
// Set bounds for this mobile
|
||||||
|
|||||||
Reference in New Issue
Block a user