Add Arboria (LEG)

This commit is contained in:
spjspj 2017-12-21 17:07:08 +11:00
parent 38272a6dde
commit 3055bac004
3 changed files with 17 additions and 26 deletions

View file

@ -87,7 +87,7 @@ class ArboriaEffect extends RestrictionEffect {
@Override
public boolean canAttack(Permanent attacker, UUID defenderId, Ability source, Game game) {
CastSpellYourLastTurnWatcher watcher = (CastSpellYourLastTurnWatcher) game.getState().getWatchers().get(CastSpellYourLastTurnWatcher.class.getSimpleName());
if (watcher.getAmountOfSpellsCastOnPlayersTurn(defenderId) > 0) {
if (watcher != null && watcher.getAmountOfSpellsCastOnPlayersTurn(defenderId) > 0) {
return true;
}