mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Fixed Heavy Arbalest. Fixed FilterCreaturePermanent.
This commit is contained in:
parent
ea33149b6f
commit
8d404138c3
2 changed files with 5 additions and 8 deletions
|
@ -111,7 +111,7 @@ class SkipUntapSourceEffect extends ReplacementEffectImpl<SkipUntapSourceEffect>
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
if (game.getTurn().getStepType() == PhaseStep.UNTAP
|
if (game.getTurn().getStepType() == PhaseStep.UNTAP
|
||||||
&& event.getType() == EventType.UNTAP
|
&& event.getType() == EventType.UNTAP
|
||||||
&& event.getTargetId().equals(source.getId())) {
|
&& event.getTargetId().equals(source.getSourceId())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -73,14 +73,11 @@ public class FilterCreaturePermanent<T extends FilterCreaturePermanent<T>> exten
|
||||||
if (!super.match(permanent))
|
if (!super.match(permanent))
|
||||||
return notFilter;
|
return notFilter;
|
||||||
|
|
||||||
if (useAttacking && permanent.isAttacking() != attacking) {
|
if (useAttacking) {
|
||||||
if (useBlocking) {
|
if (permanent.isAttacking() == attacking) {
|
||||||
if ((permanent.getBlocking() > 0) != blocking)
|
return !notFilter;
|
||||||
return notFilter;
|
}
|
||||||
} else
|
|
||||||
return notFilter;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (useBlocking && (permanent.getBlocking() > 0) != blocking)
|
if (useBlocking && (permanent.getBlocking() > 0) != blocking)
|
||||||
return notFilter;
|
return notFilter;
|
||||||
|
|
Loading…
Reference in a new issue