Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. class spell_trophy_collector : public AuraScript
  2. {
  3.     PrepareAuraScript(spell_trophy_collector);
  4.  
  5.     void OnProc(AuraEffect const* /*auraEffect*/, ProcEventInfo& eventInfo)
  6.     {
  7.         PreventDefaultAction();
  8.  
  9.         if (eventInfo.GetSpellInfo()->Id == 100776)
  10.             return;
  11.     }
  12.  
  13.     void Register() override
  14.     {
  15.         OnEffectProc += AuraEffectProcFn(spell_trophy_collector::OnProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
  16.     }
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement