public async Task HandleEvent(AfterCardDeath @event) { if (@event.Target == Card) { var row = Game.RowToList(@event.Target.PlayerIndex, @event.DeathLocation.RowPosition); var cards = row.WhereAllLowest().ToList(); for (var i = 0; i < cards.Count; i++) { await cards[i].Effect.ToCemetery(CardBreakEffectType.Scorch); } } }
public async Task HandleEvent(AfterCardDeath @event) { if (@event.Target != Card) { return; } //伤害敌方场上随机卡 var enemycards = Game.GetPlaceCards(AnotherPlayer).ToList(); if (enemycards.Count() == 0) { return; } await enemycards.Mess(Game.RNG).First().Effect.Damage(4, Card); return; }