Skip to content

Commit

Permalink
fix: #106
Browse files Browse the repository at this point in the history
  • Loading branch information
zyr17 committed Mar 24, 2024
1 parent 371e5eb commit 785dc42
Show file tree
Hide file tree
Showing 3 changed files with 1,016 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lpsim/server/patch/v44/cards/veterans_visage_4_4.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from typing import Dict, List, Literal

from lpsim.server.event import MoveObjectEventArguments
from ....struct import Cost

from .....utils.class_registry import register_class
from ....consts import ELEMENT_TO_DIE_COLOR, DamageType, ObjectPositionType
from ....action import Actions, CreateDiceAction, DrawCardAction
from ....match import Match
from ....event import ReceiveDamageEventArguments
from ....card.equipment.artifact.base import RoundEffectArtifactBase
from ....card.equipment.artifact.base import ArtifactBase, RoundEffectArtifactBase
from .....utils.desc_registry import DescDictType


Expand All @@ -16,6 +18,12 @@ class VeteransVisage_4_4(RoundEffectArtifactBase):
cost: Cost = Cost(any_dice_number=2)
max_usage_per_round: int = 2

def event_handler_MOVE_OBJECT(
self, event: MoveObjectEventArguments, match: Match
) -> List[Actions]:
# veteran's visage will not reset usage when moved
return ArtifactBase.event_handler_MOVE_OBJECT(self, event, match)

def event_handler_RECEIVE_DAMAGE(
self, event: ReceiveDamageEventArguments, match: Match
) -> List[Actions]:
Expand Down
Loading

0 comments on commit 785dc42

Please sign in to comment.