Example #1
0
        void HandleDispel(DispelInfo dispelInfo)
        {
            Unit caster = GetCaster();

            if (caster)
            {
                AuraEffect aurEff = GetEffect(1);
                if (aurEff != null)
                {
                    int damage = aurEff.GetAmount() * 9;
                    // backfire damage and silence
                    caster.CastCustomSpell(dispelInfo.GetDispeller(), SpellIds.UnstableAfflictionDispel, damage, 0, 0, true, null, aurEff);
                }
            }
        }
Example #2
0
        void HandleDispel(DispelInfo dispelInfo)
        {
            Unit caster = GetCaster();

            if (caster)
            {
                AuraEffect aurEff = GetEffect(1);
                if (aurEff != null)
                {
                    // backfire damage and silence
                    CastSpellExtraArgs args = new(aurEff);
                    args.AddSpellMod(SpellValueMod.BasePoint0, aurEff.GetAmount() * 9);
                    caster.CastSpell(dispelInfo.GetDispeller(), SpellIds.UnstableAfflictionDispel, args);
                }
            }
        }