View Single Post
  #1  
Old 06-13-2010, 12:13 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default COMMITTED: Client::Save - more than 30k hp issue

I think this is the only spot in code with this issue, but there might be more.

zone/client.cpp

Code:
if (GetHP() <= 0) {
		if (GetMaxHP() > 30000)
			m_pp.cur_hp = 30000;
		else
			m_pp.cur_hp = GetMaxHP();
	}
	else if (GetHP() > 30000)
		m_pp.cur_hp = 30000;
	else
		m_pp.cur_hp = GetHP();
	m_pp.mana = cur_mana;
	m_pp.endurance = cur_end;
just need to remove the
Code:
	else if (GetHP() > 30000)
		m_pp.cur_hp = 30000;
and clients will no longer zone into zones with 30k health if they have more than 30k health to begin with. currently if you have some crazy number (i'm lookin at you EZ server) and zone, your HP resets to 30k on zoning in and regens upwards, but as soon as you zone, it resets to 30k.
Reply With Quote