mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
2 DKA
This commit is contained in:
parent
e4b6c66b16
commit
dddca6ae32
6 changed files with 323 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
*/
|
||||
package mage.abilities.condition.common;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
|
|
@ -40,6 +41,9 @@ public class NotMyTurnCondition implements Condition {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return !game.getActivePlayerId().equals(source.getControllerId());
|
||||
UUID activePlayerId = game.getActivePlayerId();
|
||||
if (activePlayerId != null)
|
||||
return !activePlayerId.equals(source.getControllerId());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue