mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* 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:
parent
228f3ea9b5
commit
d6a3288d83
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue