Guest User

by Cronic

a guest
Apr 10th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. // Mage
  2. //Firestarter Talent
  3. class FirestarterTalent : public Spell
  4. {
  5.     SPELL_FACTORY_FUNCTION(FirestarterTalent);
  6.  
  7.     void DoAfterHandleEffect(Unit* target, uint32 i)
  8.     {
  9.         if (p_caster != NULL && target != NULL && p_caster->HasAura(54741)) // Cronicman: Player has "Firestarter" aura so we remove it AFTER casting Flamestrike.
  10.         {
  11.             p_caster->RemoveAllAuraById(54741);
  12.         }
  13.     }
  14. };
  15.  
  16.     AddSpellById(2120, FirestarterTalent::Create);   //Rank 1
  17.     AddSpellById(2121, FirestarterTalent::Create);   //Rank 2
  18.     AddSpellById(8422, FirestarterTalent::Create);   //Rank 3
  19.     AddSpellById(8423, FirestarterTalent::Create);   //Rank 4
  20.     AddSpellById(10215, FirestarterTalent::Create);   //Rank 5
  21.     AddSpellById(10216, FirestarterTalent::Create);   //Rank 6
  22.     AddSpellById(27086, FirestarterTalent::Create);   //Rank 7
  23.     AddSpellById(42925, FirestarterTalent::Create);   //Rank 8
  24.     AddSpellById(42926, FirestarterTalent::Create);   //Rank 9
Add Comment
Please, Sign In to add comment