mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08: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…
Add table
Add a link
Reference in a new issue