All pastes #507229 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-24 13:20 UTC
rendered paste body
void Aura::EventPeriodicHeal1(uint32 amount)
{
+        it (m_target->isAlive())
+        {
                uint32 ch = m_target->GetUInt32Value(UNIT_FIELD_HEALTH);
                ch+=amount;
                uint32 mh = m_target->GetUInt32Value(UNIT_FIELD_MAXHEALTH);
                
                if(ch>mh)
                        m_target->SetUInt32Value(UNIT_FIELD_HEALTH,mh);
                else
                        m_target->SetUInt32Value(UNIT_FIELD_HEALTH,ch);
        
                if(GetSpellProto()->AuraInterruptFlags & AURA_INTERRUPT_ON_STAND_UP)
                {
                        m_target->Emote(EMOTE_ONESHOT_EAT);
                }
+        }
}