mirror of
https://github.com/correl/mage.git
synced 2025-01-13 03:00:10 +00:00
* The Rack - Fixed that it did no damage to the chosen opponent.
This commit is contained in:
parent
d79776e589
commit
024f13ce9a
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class TheRackEffect extends OneShotEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
UUID playerId = (UUID) game.getState().getValue(source.getSourceId().toString() + "_player");
|
UUID playerId = (UUID) game.getState().getValue(source.getSourceId().toString() + ChooseOpponentEffect.VALUE_KEY);
|
||||||
Player chosenPlayer = game.getPlayer(playerId);
|
Player chosenPlayer = game.getPlayer(playerId);
|
||||||
if (chosenPlayer != null) {
|
if (chosenPlayer != null) {
|
||||||
int damage = 3 - chosenPlayer.getHand().size();
|
int damage = 3 - chosenPlayer.getHand().size();
|
||||||
|
|
Loading…
Reference in a new issue