using Audio; using System.Collections.Generic; using System.Xml.Linq; public class CanAttackExecute : TargetedCompareRequirementBase { public override bool IsValid(MinEventParams _params) { //Log.Out("CanAttackExecute-IsValid START"); if (!base.ParamsValid(_params)) { //Log.Out("CanAttackExecute-IsValid 1"); return false; } bool result = RebirthUtilities.CanAttackExecute(target); if (!this.invert) { //Log.Out("CanAttackExecute-IsValid 2, result: " + result); return result; } //Log.Out("CanAttackExecute-IsValid 3, !result: " + !result); return !result; } /*public override bool ParseXAttribute(XAttribute _attribute) { bool flag = base.ParseXAttribute(_attribute); if (!flag) { string name = _attribute.Name.LocalName; if (name != null && name == "buff") { this.buffName = _attribute.Value.ToLower(); return true; } } return flag; }*/ //private string buffName; }