mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
fix null-check in raging river and a watcher
This commit is contained in:
parent
ed3742b1e4
commit
7f319c2751
2 changed files with 8 additions and 5 deletions
|
|
@ -5,16 +5,17 @@
|
|||
*/
|
||||
package mage.watchers.common;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.constants.WatcherScope;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.watchers.Watcher;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2 (spjspj)
|
||||
|
|
@ -75,7 +76,7 @@ public class PermanentsEnteredBattlefieldYourLastTurnWatcher extends Watcher {
|
|||
}
|
||||
|
||||
public List<Permanent> getPermanentsEnteringOnPlayersLastTurn(Game game, UUID playerId) {
|
||||
if (game.getActivePlayerId() == playerId) {
|
||||
if (game.getActivePlayerId().equals(playerId)) {
|
||||
return enteringBattlefield.get(playerId);
|
||||
}
|
||||
return enteringBattlefieldLastTurn.get(playerId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue