- Code: Select all
if (target.EffectList.GetOfType(typeof(AllureofDeathEffect)) != null)
{
resist += 75;
}
My Code:
- Code: Select all
if (target.EffectList.GetOfType(typeof(AllureofDeathEffect)) != null)
{
int basechance = base.CalculateSpellResistChance(target);
GameSpellEffect Nearsight = SpellHandler.FindEffectOnTarget(target, "Nearsight");
if (Nearsight != null)
{
basechance += (int)Nearsight.Spell.Value;
}
GameSpellEffect Mesmerize = SpellHandler.FindEffectOnTarget(target, "Mesmerize");
if (Mesmerize != null)
{
basechance += (int)Mesmerize.Spell.Value;
}
GameSpellEffect Stun = SpellHandler.FindEffectOnTarget(target, "Stun");
if (Stun != null)
{
basechance += (int)Stun.Spell.Value;
}
return Math.Min(75, basechance);
}
Definition of RA - Bonedancer appearance is changed to skeletal form for 60 seconds to confuse enemy. When in skeletal form, the Bonedancer has a 75% chance of out-right resisting Nearsight and all Crowd Control spells.
http://camelotherald.com/realmabilities/ra.php