Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.11 KB | None | 0 0
  1. //Basic and made by Sunrise!:D//
  2.  
  3.  
  4. switch(GetId())
  5.     {
  6.     case 71903:
  7.             if(caster->GetTypeId() == TYPEID_PLAYER && urand(1,5)== 1)
  8.  
  9.             caster->CastSpell(caster, 71905, true);
  10.             break;
  11.     case 71905:
  12.             if (apply)
  13.             {
  14.                 if(GetStackAmount()== 1)
  15.                     caster->AddAura(72521, caster);
  16.                 if(GetStackAmount() == 6)
  17.                 {
  18.                     caster->RemoveAura(72521);
  19.                     caster->CastSpell(caster, 72523, false);
  20.                 }
  21.                 if(GetStackAmount() == 6)
  22.                 {
  23.                     caster->RemoveAura(72523);
  24.                     caster->RemoveAura(71905);
  25.                     caster->CastSpell(caster, 71904, false);
  26.                     caster->CastSpell(caster, 73422, false);
  27.                 }
  28.                 break;
  29.             }
  30.             if (!apply && aurApp->GetRemoveMode()!= aura_remove_by_stack)
  31.             {
  32.                 caster->RemoveAura(72521);
  33.                 caster->RemoveAura(72523);
  34.             }
  35.     break;
  36.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement