From 462ad0f5fdfce958235ff89ee105d4fb045d304c Mon Sep 17 00:00:00 2001 From: Erzangel Date: Thu, 16 May 2024 19:10:07 +0200 Subject: [PATCH] feat: restyle suicide effect & effects to enemies --- components/PlayerSlot.vue | 131 ++++++++++++++++++++++++++++++++++---- 1 file changed, 119 insertions(+), 12 deletions(-) diff --git a/components/PlayerSlot.vue b/components/PlayerSlot.vue index 93627bd..346c5dc 100644 --- a/components/PlayerSlot.vue +++ b/components/PlayerSlot.vue @@ -13,7 +13,7 @@ import goStore, { } from "~/netcode"; import { CardType, type Card } from "~/netcode/Card"; import type { Player } from "~/netcode/Player"; -import { CardEffects, type Effect } from "@/netcode/Effect"; +import { CardEffects, type Effect, EffectType } from "@/netcode/Effect"; import type { Team } from "~/netcode/Team"; export interface Props { @@ -80,6 +80,14 @@ function checkEndTurn() { endTurn() } } + +function damage_team_all(team: Team) { + for (let i = 0; i < (goStore.self?.turn?.damage_reserve ?? 0); i++) { + damage_team(team) + } +} + +