[ORI] Renown - Fixed that renown was not applied again after creature left and returned to battlefield.

This commit is contained in:
LevelX2 2015-07-05 08:58:19 +02:00
parent bb2a7a25b2
commit 9c53e7f984
2 changed files with 89 additions and 16 deletions

View file

@ -48,7 +48,8 @@ public class RenownAbility extends TriggeredAbilityImpl {
@Override
public boolean checkInterveningIfClause(Game game) {
return getSourceObject(game) != null && !((Permanent) getSourceObject(game)).isRenown();
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(getSourceId());
return sourcePermanent != null && !sourcePermanent.isRenown();
}
@Override