public override Task UseCard(SimpleGamePlayer user, SimpleGamePlayer target, CancellationToken token) { if (Element == null) { throw new InvalidOperationException(); } target.SetEffect(new CurseEffect(Element)); AnnounceSpecialCardUsed(user); return(Task.CompletedTask); }
public override Task UseCard(SimpleGamePlayer user, SimpleGamePlayer target, CancellationToken token) { if (Element == Element.水) { target.Purify(false); } var effect = new ShieldEffect(Element); target.SetEffect(effect); AnnounceSpecialCardUsed(user); target.PlayerHost.WriteMessage($"您使用了{effect.Name},{effect.Description}"); return(Task.CompletedTask); }