Advertisement
Guest User

Untitled

a guest
Jan 12th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.56 KB | None | 0 0
  1.         case SPELLFAMILY_DRUID:
  2.                 if (!caster)
  3.                     break;
  4.                 // Rejuvenation
  5.                 if (GetSpellInfo()->SpellFamilyFlags[0] & 0x10 && GetEffect(EFFECT_0))
  6.                 {
  7.                     // Druid T8 Restoration 4P Bonus
  8.                     if (caster->HasAura(64760))
  9.                     {
  10.                         int32 heal = GetEffect(EFFECT_0)->GetAmount();
  11.                         caster->CastCustomSpell(target, 64801, &heal, NULL, NULL, true, NULL, GetEffect(EFFECT_0));
  12.                     }
  13.                 }
  14.  
  15. ------------------------------------------------------------
  16. switch (GetId())
  17.                 {
  18.                         case 5217: // tiger Fury
  19.                         {
  20.                             if (caster->GetShapeshiftForm() == FORM_CAT)
  21.                             {
  22.                                 if (caster->HasAura(78892) && caster->HasAura(105735))   // Stampede & T13
  23.                                     caster->CastSpell(caster,81021, true);
  24.  
  25.                                 if (caster->HasAura(78893) && caster->HasAura(105735))   // Stampede & T13
  26.                                     caster->CastSpell(caster,81022, true);
  27.  
  28.                                 caster->CastSpell(caster, 109881, true);  // Stampede Ravage Marker
  29.                             }
  30.                             else if (caster->GetShapeshiftForm() == FORM_BEAR)
  31.                             {
  32.                                 if (caster->HasAura(78892) && caster->HasAura(105735))    // Stampede & T13
  33.                                     caster->CastSpell(caster, 81016, true);
  34.  
  35.                                 if (caster->HasAura(78893) && caster->HasAura(105735))    // Stampede & T13
  36.                                     caster->CastSpell(caster, 81017, true);
  37.                             }
  38.                         }
  39.                         break;
  40.  
  41.                     default:
  42.                         break;
  43.                 }
  44.                 break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement