public bool TryEffectTarget(PlayerMobile from, Mobile target, bool isAreaEffect) { if (from == null || from.Deleted || !from.Alive || from.IsDeadBondedPet) return false; if (target == null || target.Deleted || !target.Alive || target.IsDeadBondedPet) return false; if (isAreaEffect) { if (from.IsAllyOf(target)) { if (Repetitions > 0) { RecurrentPrayerTimer timer = new RecurrentPrayerTimer(from, target, this); timer.Start(); } return DoPrayerEffect(from, target); } else return false; } else { if (target.InRange(target.Location, m_Range) && from.InLOS(target)) { SpellHelper.Turn(from, target); if (Repetitions > 0) { RecurrentPrayerTimer timer = new RecurrentPrayerTimer(from, target, this); timer.Start(); } return DoPrayerEffect(from, target); } else { from.SendMessage("You are too far away."); return false; } } return false; }