* Dream Halls - Fixed that it only was applied to the controller instead of all players in range of he controller.

This commit is contained in:
LevelX2 2014-11-30 22:43:52 +01:00
parent 228f3ea9b5
commit d6a3288d83

View file

@ -102,7 +102,13 @@ class DreamHallsEffect extends ContinuousEffectImpl {
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
controller.getAlternativeSourceCosts().add(alternativeCastingCostAbility);
for (UUID playerId: controller.getInRange()) {
Player player = game.getPlayer(playerId);
if (player != null) {
player.getAlternativeSourceCosts().add(alternativeCastingCostAbility);
}
}
return true;
}
return false;