forked from MagicBane/Server
additional pet health modifiers
This commit is contained in:
@@ -2072,6 +2072,11 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.deathTime = 0;
|
this.deathTime = 0;
|
||||||
|
|
||||||
|
if(this.isPet() && this.bonuses != null){
|
||||||
|
this.healthMax = this.healthMax + this.bonuses.getFloat(ModType.HealthFull,SourceType.None);
|
||||||
|
this.health.set(this.healthMax);
|
||||||
|
}
|
||||||
InterestManager.setObjectDirty(this);
|
InterestManager.setObjectDirty(this);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error(e.getMessage());
|
Logger.error(e.getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user