Exemplo n.º 1
0
            void HandleScriptEffect(SpellEffIndex effIndex)
            {
                PreventHitAura();

                if (Unit* caster = GetCaster())
                    if (Creature* balloon = caster->SummonCreature(55649, 915.55f, 4563.66f, 230.68f, 2.298090f, TEMPSUMMON_MANUAL_DESPAWN, 0, caster->GetGUID()))
                        caster->EnterVehicle(balloon, 0);
            }
 void RestoreImmunity()
 {
     if (Unit* target = GetHitUnit())
     {
         target->ApplySpellImmune(GetSpellInfo()->Id, IMMUNITY_ID, GetSpellInfo()->Id, false);
         if (prevented)
             PreventHitAura();
     }
 }
Exemplo n.º 3
0
 void RemoveAura()
 {
     if (_removed)
         PreventHitAura();
 }