예제 #1
0
 public async Task HandleEvent(AfterCardConsume @event)
 {
     if (@event.Target != Card)
     {
         return;
     }
     await @event.Source.Effect.Boost(4, Card);
 }
예제 #2
0
 public async Task HandleEvent(AfterCardConsume @event)
 {
     //如果并非友军吞噬, 并且位于正确位置的话,不触发效果
     if (!(@event.Source.PlayerIndex == PlayerIndex &&
           (Card.Status.CardRow.IsInDeck() || Card.Status.CardRow.IsInHand() || Card.Status.CardRow.IsOnPlace()) &&
           !Card.IsDead))
     {
         return;
     }
     await Card.Effect.Boost(1, Card);
 }