Changeset 1524

User picture

Author: ATracer

(2010/03/14 21:25) Almost 2 years ago

added warning message to lifestats

Affected files

Updated trunk/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/stats/CreatureLifeStats.java Download diff

15231524
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
	/**