* The Rack - Fixed that it did no damage to the chosen opponent.

This commit is contained in:
LevelX2 2015-10-28 23:55:34 +01:00
parent d79776e589
commit 024f13ce9a

View file

@ -119,7 +119,7 @@ class TheRackEffect extends OneShotEffect {
@Override
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);
if (chosenPlayer != null) {
int damage = 3 - chosenPlayer.getHand().size();