mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Oversight fix
This commit is contained in:
parent
4155b30af3
commit
6400a401d4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue