if(p_time >= m_R_degenTimer) TO< Player* >(this)->DegenerateRage(); else m_R_degenTimer -= static_cast<uint16>(p_time);
void Player::DegenerateRage()// Handles the Rage Degeneration and sends info further on to LooseRage.{ if(!isAlive()) // Don't do anything if the player is dead return; // just skip it all. m_R_degenTimer = 1500; // Set the Rage Degen Timer just in case. if(!CombatStatus.IsInCombat()) { if(HasAura(12296)) LooseRage(20); else LooseRage(30); } else { if(HasAura(12296)) { m_R_degenTimer = 1500; TO< Player* >(this)->LooseRage(-10); } }}void Player::LooseRage(uint32 decayValue)// Further handles the Degeneration of Rage.{ uint32 cur = GetPower(POWER_TYPE_RAGE); uint32 newrage = ((int)cur <= decayValue) ? 0 : cur - decayValue; if( cur <= decayValue ) newrage = 0; else newrage = cur - decayValue; if(newrage > 1000) newrage = 1000; SetPower(POWER_TYPE_RAGE, newrage);}
CheckIncludeFiles.cCheckIncludeFiles.c(2): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory