All pastes #810328 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-12-09 21:05 UTC
rendered paste body
Index: trunk/src/game/Creature.cpp===================================================================--- trunk/src/game/Creature.cpp	(revision 2529)+++ trunk/src/game/Creature.cpp	(working copy)@@ -98,6 +98,7 @@ 	m_base_runSpeed = m_runSpeed; 	m_base_walkSpeed = m_walkSpeed; 	m_noRespawn=false;+	m_canRegenerateHP = true; }  @@ -597,7 +598,7 @@  void Creature::RegenerateHealth() {-	if(m_limbostate)+	if(m_limbostate || !m_canRegenerateHP) 		return;  	uint32 cur=GetUInt32Value(UNIT_FIELD_HEALTH);Index: trunk/src/game/Creature.h===================================================================--- trunk/src/game/Creature.h	(revision 2529)+++ trunk/src/game/Creature.h	(working copy)@@ -360,6 +360,7 @@ 	float ModDamageDonePct[7]; 	void CalcResistance(uint32 type); 	void CalcStat(uint32 type);+	bool m_canRegenerateHP; 	void RegenerateHealth(); 	void RegenerateMana();