예제 #1
0
        public override void OnRemoved(object parent)
        {
            if (Core.AOS && parent is Mobile)
            {
                Mobile from = (Mobile)parent;

                m_AosSkillBonuses.Remove();

                string modName = Serial.ToString();

                from.RemoveStatMod(modName + "Str");
                from.RemoveStatMod(modName + "Dex");
                from.RemoveStatMod(modName + "Int");

                from.CheckStatTimers();

                #region Mondain's Legacy Sets
                if (IsSetItem && m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(from, SetID, this);
                }
                #endregion
            }

            Server.Engines.XmlSpawner2.XmlAttach.CheckOnRemoved(this, parent);
        }
        public override void OnRemoved(IEntity parent)
        {
            Mobile mob = parent as Mobile;

            if (mob != null)
            {
                if (Core.AOS)
                {
                    m_AosSkillBonuses.Remove();
                }


                #region Set Items
                if (IsSetItem && m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(mob, SetID, this);
                }
                #endregion


                string modName = this.Serial.ToString();

                mob.RemoveStatMod(modName + "Str");
                mob.RemoveStatMod(modName + "Dex");
                mob.RemoveStatMod(modName + "Int");

                mob.CheckStatTimers();
            }

            base.OnRemoved(parent);
        }
예제 #3
0
        public override void OnRemoved(object parent)
        {
            if (parent is Mobile)
            {
                Mobile mob = (Mobile)parent;

                //m_Attributes.RemoveStatBonuses( mob );

                BaseRanged ranged = mob.Weapon as BaseRanged;

                if (ranged != null)
                {
                    ranged.InvalidateProperties();
                }

                string modName = this.Serial.ToString();

                mob.RemoveStatMod(modName + "Str");
                mob.RemoveStatMod(modName + "Dex");
                mob.RemoveStatMod(modName + "Int");

                mob.CheckStatTimers();

                #region Mondain's Legacy Sets
                if (IsSetItem && m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(mob, SetID, this);
                }
                #endregion
            }
        }
예제 #4
0
        public override void OnRemoved(object parent)
        {
            if (parent is Mobile)
            {
                Mobile mob = (Mobile)parent;

                BaseRanged ranged = mob.Weapon as BaseRanged;

                if (ranged != null)
                {
                    ranged.InvalidateProperties();
                }

                string modName = this.Serial.ToString();

                mob.RemoveStatMod(modName + "Str");
                mob.RemoveStatMod(modName + "Dex");
                mob.RemoveStatMod(modName + "Int");

                mob.CheckStatTimers();

                if (IsSetItem ? m_SetEquipped : false)
                {
                    SetHelper.RemoveSetBonus(mob, SetID, this);
                }
            }
        }
예제 #5
0
        public override bool OnDragLift(Mobile from)
        {
            if (Parent is Mobile && from == Parent)
            {
                if (IsSetItem && m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(from, SetID, this);
                }
            }

            return(base.OnDragLift(from));
        }
예제 #6
0
        public override void OnRemoved(object parent)
        {
            if (parent is Mobile mob)
            {
                m_Attributes.RemoveStatBonuses(mob);
                m_AosSkillBonuses.Remove();

                if (IsSetItem && m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(mob, SetID, this);
                }
            }
        }
예제 #7
0
        public override bool OnDragLift(Mobile from)
        {
            #region Mondain's Legacy Sets
            if (this.Parent is Mobile && from == this.Parent)
            {
                if (this.IsSetItem && this.m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(from, this.SetID, this);
                }
            }
            #endregion

            return(base.OnDragLift(from));
        }
예제 #8
0
        public override void OnRemoved(object parent)
        {
            if (parent is Mobile)
            {
                Mobile mob = (Mobile)parent;

                m_Attributes.RemoveStatBonuses(mob);

                #region Mondain's Legacy Sets
                if (IsSetItem && m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(mob, SetID, this);
                }
                #endregion
            }
        }
예제 #9
0
        public override bool OnDragLift(Mobile from)
        {
            #region Set Armor
            if (Parent is Mobile && from == Parent)
            {
                Mobile m = (Mobile)Parent;

                if (IsSetItem ? m_SetEquipped : false)
                {
                    SetHelper.RemoveSetBonus(from, SetID, this);
                }
            }
            #endregion

            return(base.OnDragLift(from));
        }
예제 #10
0
        public override void OnRemoved(object parent)
        {
            if (parent is Mobile from)
            {
                m_AosSkillBonuses.Remove();

                string modName = Serial.ToString();

                from.RemoveStatMod(modName + "Str");
                from.RemoveStatMod(modName + "Dex");
                from.RemoveStatMod(modName + "Int");

                from.CheckStatTimers();

                #region Mondain's Legacy Sets
                if (IsSetItem && m_SetEquipped)
                {
                    SetHelper.RemoveSetBonus(from, SetID, this);
                }
                #endregion
            }
        }