Fix compilation error

This commit is contained in:
Oleg Agafonov 2019-03-14 19:45:03 +04:00 committed by GitHub
parent 465d8ba254
commit f794e9551d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,10 +85,7 @@ class BenevolentUnicornEffect extends ReplacementEffectImpl {
if (stackObject == null) {
stackObject = (StackObject) game.getLastKnownInformation(event.getSourceId(), Zone.STACK);
}
if (stackObject instanceof Spell) {
return super.applies(event, source, game);
}
return false;
return stackObject instanceof Spell;
}
}