示例#1
0
        private static bool CheckHealPoisonTarg(uint targID, Serial ser)
        {
            if (World.Player == null)
            {
                return(false);
            }

            if (targID == m_SpellTargID && ser.IsMobile &&
                (World.Player.LastSpell == Spell.ToID(1, 4) || World.Player.LastSpell == Spell.ToID(4, 5)) &&
                Config.GetBool("BlockHealPoison") && Client.Instance.AllowBit(FeatureBit.BlockHealPoisoned))
            {
                Mobile m = World.FindMobile(ser);

                if (m != null && m.Poisoned)
                {
                    World.Player.SendMessage(MsgLevel.Warning, LocString.HealPoisonBlocked);
                    return(true);
                }
            }

            return(false);
        }
示例#2
0
 internal static Spell Get(int circle, int num)
 {
     return(Get(Spell.ToID(circle, num)));
 }
示例#3
0
        private static bool CheckHealPoisonTarg(uint targID, Serial ser)
        {
            if (World.Player == null)
            {
                return(false);
            }

            if (!RazorEnhanced.Settings.General.ReadBool("BlockHealPoison"))
            {
                return(false);
            }

            if (targID == m_SpellTargID && ser.IsMobile && (World.Player.LastSpell == Spell.ToID(1, 4) || World.Player.LastSpell == Spell.ToID(4, 5) || World.Player.LastSpell == 202))
            {
                Mobile m = World.FindMobile(ser);

                if (m != null && m.Poisoned)
                {
                    World.Player.SendMessage(MsgLevel.Warning, "Heal blocked, Target is poisoned!");
                    return(true);
                }
                else if (m != null && m.Blessed)
                {
                    World.Player.SendMessage(MsgLevel.Warning, "Heal blocked, Target is mortelled!");
                    return(true);
                }
            }
            return(false);
        }
示例#4
0
        private static bool CheckHealPoisonTarg(uint targID, Serial ser)
        {
            if (World.Player == null)
            {
                return(false);
            }

            if (targID == m_SpellTargID && ser.IsMobile && (World.Player.LastSpell == Spell.ToID(1, 4) || World.Player.LastSpell == Spell.ToID(4, 5)) && Config.GetBool("BlockHealPoison"))
            {
                Mobile m = World.FindMobile(ser);

                if (m != null && m.Poisoned)
                {
                    return(true);
                }
            }

            return(false);
        }