[CLB] Fix Incorrect Volo Behavior (#9190)

This commit is contained in:
Alex Vasile 2022-07-04 22:17:33 -04:00 committed by GitHub
parent 78f3547644
commit dca2ae546e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 23 deletions

View file

@ -90,11 +90,12 @@ class VoloItinerantScholarEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
return player != null && permanent != null
&& player.drawCards(
VolosJournalToken.getNotedTypes(
game, permanent.getId(), permanent.getZoneChangeCounter(game)
).size(), source, game
) > 0;
if (player == null || permanent == null) {
return false;
}
return player.drawCards(
VolosJournalToken.getNotedTypes(game, permanent).size(),
source,
game) > 0;
}
}