forked from External/mage
Fixed some problems with possible ConcurrentModificationExceptions and some minor changes.
This commit is contained in:
parent
d97f6c6cd1
commit
81af372bc1
144 changed files with 410 additions and 429 deletions
|
|
@ -75,7 +75,7 @@ public class DamagePlayersEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
switch (controller) {
|
||||
case ANY:
|
||||
for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
|
||||
for (UUID playerId: game.getState().getPlayersInRange(source.getControllerId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
player.damage(amount.calculate(game, source, this), source.getSourceId(), game, false, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue