root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/stats/CreatureLifeStats.java
| 1369 | 1524 | ||
|---|---|---|---|
99 | */ | 99 | */ |
100 | public int getMaxHp() | 100 | public int getMaxHp() |
101 | { | 101 | { |
102 | return this.getOwner().getGameStats().getCurrentStat(StatEnum.MAXHP); | 102 | int maxHp = this.getOwner().getGameStats().getCurrentStat(StatEnum.MAXHP); |
103 | if(maxHp == 0) | ||
104 | { | ||
105 | maxHp = 1; | ||
106 | log.warn("CHECKPOINT: maxhp is 0 :" + this.getOwner().getGameStats()); | ||
107 | } | ||
108 | return maxHp; | ||
103 | } | 109 | } |
104 | 110 | ||
105 | /** | 111 | /** |
Download diff