- Code: Select all
if (target.EffectList.GetOfType(typeof(AllureofDeathEffect)) != null)
{
resist += 75;
}
- 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);
}
http://camelotherald.com/realmabilities/ra.php