[AFR] Fix Classes leveling up even if phased out. Closes #8549.

This commit is contained in:
Alex Vasile 2022-07-01 14:32:02 -04:00
parent 89b74d7ab0
commit 75c8876746

View file

@ -77,7 +77,7 @@ class SetClassLevelEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
if (permanent == null) {
if (permanent == null || !permanent.isPhasedIn()) {
return false;
}