remove redundant null check

This commit is contained in:
Ingmar Goudt 2018-09-28 15:17:41 +02:00
parent e36eb5782b
commit be5305da90
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ public class EntersBattlefieldWithXCountersEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getSourceId());
if (permanent == null) {
if (permanent == null && source.getAbilityType() == AbilityType.STATIC) {
if (source.getAbilityType() == AbilityType.STATIC) {
permanent = game.getPermanentEntering(source.getSourceId());
}
}