mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed Monstrous Step targeting
This commit is contained in:
parent
862cdf5420
commit
1ad3a0f768
1 changed files with 5 additions and 6 deletions
|
@ -75,12 +75,11 @@ class MonstrousStepEffect extends RequirementEffect {
|
|||
@Override
|
||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||
BlockedAttackerWatcher watcher = game.getState().getWatcher(BlockedAttackerWatcher.class);
|
||||
if (watcher == null
|
||||
|| watcher.creatureHasBlockedAttacker(game.getPermanent(source.getFirstTarget()), permanent, game)
|
||||
|| !permanent.getId().equals(source.getTargets().get(1).getFirstTarget())) {
|
||||
return permanent.canBlock(source.getFirstTarget(), game);
|
||||
}
|
||||
return false;
|
||||
return permanent != null
|
||||
&& watcher != null
|
||||
&& !watcher.creatureHasBlockedAttacker(game.getPermanent(source.getFirstTarget()), permanent, game)
|
||||
&& permanent.getId().equals(source.getTargets().get(1).getFirstTarget())
|
||||
&& permanent.canBlock(source.getFirstTarget(), game);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue