mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
* Prevented NPE for getPhaseType().
This commit is contained in:
parent
f2fc548f08
commit
02df3f49a7
4 changed files with 5 additions and 5 deletions
|
|
@ -47,7 +47,7 @@ public class IsPhaseCondition implements Condition {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return game.getTurn().getPhaseType().equals(turnPhase);
|
||||
return turnPhase.equals(game.getTurn().getPhaseType());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue