public override bool CheckCast() { if (IsInCooldown(Caster, this.GetType())) { return(false); } if (!CheckWeapon()) { Caster.SendLocalizedMessage(1156000); // You must have an Archery weapon to use this ability! return(false); } if (SkillMasterySpell.UnderPartyEffects(Caster, typeof(PlayingTheOddsSpell))) { Caster.SendLocalizedMessage(1062945); // That ability is already in effect. return(false); } return(base.CheckCast()); }
/*Notes: * Poison Resist 25% flat rate in spell is active - TODO: Get OSI Rate??? * Bleed, Mortal and Curse cuts time by 1/2 * Reference PlayerMobile, BleedAttack, MortalStrike and CurseSpell */ public static bool UnderEffects(Mobile m) { return(SkillMasterySpell.UnderPartyEffects(m, typeof(ResilienceSpell))); }