public void Activate(ConditionsD condition, MabiDictionary extra = null) { this.D |= condition; if (extra != null) { this.SetExtra((double)condition, 3, extra); } Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
public void Activate(ConditionsD condition, MabiDictionary extra = null, int duration = -1) { this.D |= condition; if (extra != null) this.SetExtra((double)condition, 3, extra); if (duration > 0) this.SetDuration((double)condition, 3, duration); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
public bool Has(ConditionsD condition) { return ((this.D & condition) != 0); }
public void Deactivate(ConditionsD condition) { this.D &= ~condition; this.RemoveExtra((double)condition, 3); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
public bool Has(ConditionsD condition) { return((this.D & condition) != 0); }
public void Deactivate(ConditionsD condition) { this.D &= ~condition; Send.ConditionUpdate(_creature); }
public void Activate(ConditionsD condition) { this.D |= condition; Send.ConditionUpdate(_creature); }
public void Activate(ConditionsD condition, MabiDictionary extra = null) { this.D |= condition; if (extra != null) this.SetExtra((double)condition, 3, extra); Send.ConditionUpdate(_creature); }