Skip to content

Commit

Permalink
Merge pull request #113 from LPSim/issue-106
Browse files Browse the repository at this point in the history
fix: Issue 106
  • Loading branch information
zyr17 authored Mar 24, 2024
2 parents 371e5eb + ba7c9e0 commit 3b7104b
Show file tree
Hide file tree
Showing 3 changed files with 1,016 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/lpsim/server/patch/v44/cards/veterans_visage_4_4.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Dict, List, Literal
from ....struct import Cost

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 ....event import ReceiveDamageEventArguments, MoveObjectEventArguments
from ....card.equipment.artifact.base import ArtifactBase, RoundEffectArtifactBase
from .....utils.desc_registry import DescDictType


Expand All @@ -16,6 +16,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 3b7104b

Please sign in to comment.