Remove automatic effect trigger

This commit is contained in:
2024-05-01 15:41:13 +02:00
parent f1a8fdc0fc
commit 85aef50750
-8
View File
@@ -181,14 +181,6 @@ export function lockCard(card: Card) {
data_type: "lock_card", data_type: "lock_card",
data: card.uuid data: card.uuid
})) }))
card.effects.forEach(e => {
if (e.effect_type !== EffectType.SUICIDE && e.usable && [CardEffects.DAMAGE, CardEffects.GOLD, CardEffects.HEAL].includes(e.effect)) {
for (let i = 0; i < e.amount; i++) {
useEffect(e)
}
}
})
} }
export function useEffect(effect: Effect, target?: Effect | Card | Player | Team) { export function useEffect(effect: Effect, target?: Effect | Card | Player | Team) {