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); } } }
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); } } }