Fixed Bug in the BaseLight.cs

PyrO

Well-Known Member
Jan 27, 2015
1,152
92
Operating System
All
ServUO Version
all
The issue is that the property Burning can never be set to false.

C#:
        [CommandProperty(AccessLevel.GameMaster)]
        public bool Burning
        {
            get
            {
                return this.m_Burning;
            }
            set
            {
                if (this.m_Burning != value)
                {
                    this.m_Burning = true;
                    this.DoTimer(this.m_Duration);
                }
            }
        }
this should be replace with this, with the change you are able to set the status of the property, including ingame ;)

C#:
        [CommandProperty(AccessLevel.GameMaster)]
        public bool Burning
        {
            get { return m_Burning; }
            set
            {
                if (m_Burning == value) return;
                if (value)
                    Ignite();
                else
                    Douse();
            }
        }