public override bool Commit(GameEventArgs arg) { arg.Source[RenJie.RenMark]--; arg.Source[BaiYinWanShaUsed] = 1; ISkill skill = new WanSha(); arg.Source.AcquireAdditionalSkill(skill); Game.CurrentGame.RegisterTrigger(GameEvent.PhasePostEnd, new WanShaRemoval(arg.Source, skill)); return(true); }
public override bool Commit(GameEventArgs arg) { arg.Source[RenJie.RenMark]--; arg.Source[BaiYinWanShaUsed] = 1; ISkill skill = new WanSha(); arg.Source.AcquireAdditionalSkill(skill); Game.CurrentGame.RegisterTrigger(GameEvent.PhasePostEnd, new WanShaRemoval(arg.Source, skill)); return true; }