mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
Refactor: Remove Unused triggerId variable (#9237)
This commit is contained in:
parent
f20210037b
commit
f507a6605c
1 changed files with 1 additions and 2 deletions
|
|
@ -1542,7 +1542,6 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
GameEvent.EventType.TRIGGERED_ABILITY,
|
||||
ability.getId(), ability, ability.getControllerId()
|
||||
));
|
||||
triggerId = ability.getId();
|
||||
}
|
||||
game.removeBookmark(bookmark);
|
||||
return true;
|
||||
|
|
@ -1551,7 +1550,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
restoreState(bookmark, triggeredAbility.getRule(), game); // why restore is needed here? (to remove the triggered ability from the stack because of no possible targets)
|
||||
GameEvent event = new GameEvent(
|
||||
GameEvent.EventType.ABILITY_TRIGGERED,
|
||||
triggerId, ability, ability.getControllerId()
|
||||
ability.getId(), ability, ability.getControllerId()
|
||||
);
|
||||
game.getState().setValue(event.getId().toString(), ability.getTriggerEvent());
|
||||
game.fireEvent(event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue