8 public bool IsValidTarget(
Card c)
15 public override bool LocalAct
25 public override bool IsHostileAct
29 return this.target !=
null && this.target.isNPCProperty;
34 public override void OnSetOwner()
36 if (this.target !=
null && (this.target.GetRootCard() ==
this.owner ||
this.target.parent ==
null))
38 this.owner.Drink(this.target);
44 public override IEnumerable<
AIAct.Status> Run()
46 if (this.target !=
null && (this.target.GetRootCard() ==
this.owner ||
this.target.parent ==
null))
48 this.owner.HoldCard(this.target, 1);
50 else if (this.target !=
null)
52 yield
return base.DoGrab(this.target, 1,
false,
null);
58 this.target = this.owner.held;
59 if (this.target ==
null)
61 yield
return this.Cancel();
63 yield
return base.Success(delegate
65 this.owner.Drink(this.target);