Guest User

Untitled

a guest
Feb 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. SpellAuraProcResult Unit::HandleObsModHealthProc(Unit* pVictim, uint32 damage, Aura* triggeredByAura, SpellEntry const *procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
  2. {
  3. if (triggeredByAura->GetId() == 44521)
  4. {
  5. SetHealth(GetMaxHealth());
  6. SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
  7. SetPower(POWER_ENERGY, GetMaxPower(POWER_ENERGY));
  8. }
  9.  
  10. return SPELL_AURA_PROC_OK;
  11. }
Add Comment
Please, Sign In to add comment