Oversight fix

This commit is contained in:
Zzooouhh 2017-10-15 23:26:11 +02:00 committed by GitHub
parent 4155b30af3
commit 6400a401d4

View file

@ -183,14 +183,14 @@ class MasterWarcraftCantAttackRestrictionEffect extends RestrictionEffect {
}
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
public boolean applies(Permanent creature, Ability source, Game game) {
for (Map.Entry<RequirementEffect, Set<Ability>> entry : game.getContinuousEffects().getApplicableRequirementEffects(creature, false, game).entrySet()) {
RequirementEffect effect = entry.getKey();
if (effect.mustAttack(game)) {
return false;
}
}
return this.getTargetPointer().getFirst(game, source).equals(permanent.getId());
return this.getTargetPointer().getFirst(game, source).equals(creature.getId());
}
@Override