Remove automatic effect trigger
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user