public override void Run(Combat.Character character) { Int32 explod_id = EvaluationHelper.AsInt32(character, Id, Int32.MinValue); Int32 time = EvaluationHelper.AsInt32(character, Time, 1); foreach (Combat.Explod explod in character.GetExplods(explod_id)) { explod.Data.BindTime = time; } }
public override void Run(Combat.Character character) { var explodId = EvaluationHelper.AsInt32(character, Id, int.MinValue); var time = EvaluationHelper.AsInt32(character, Time, 1); foreach (var explod in character.GetExplods(explodId)) { explod.Data.BindTime = time; } }
public override void Run(Combat.Character character) { Int32 explod_id = EvaluationHelper.AsInt32(character, ExplodId, Int32.MinValue); List <Combat.Explod> removelist = new List <Combat.Explod>(character.GetExplods(explod_id)); foreach (Combat.Explod explod in removelist) { explod.Kill(); } }
public override void Run(Combat.Character character) { var explodId = EvaluationHelper.AsInt32(character, ExplodId, int.MinValue); var removelist = new List <Combat.Explod>(character.GetExplods(explodId)); foreach (var explod in removelist) { explod.Kill(); } }
public override void Run(Combat.Character character) { Combat.ModifyExplodData data = CreateModifyExplodData(character); if (data == null) { return; } foreach (Combat.Explod explod in character.GetExplods(data.Id)) { explod.Modify(data); } }
public static Int32 Evaluate(Object state, ref Boolean error, Int32 explod_id) { Combat.Character character = state as Combat.Character; if (character == null) { error = true; return(0); } Int32 count = 0; foreach (Combat.Explod explod in character.GetExplods(explod_id)) { ++count; } return(count); }