mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +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) {
|
||||
if (game.getTurn().getStepType() == PhaseStep.UNTAP
|
||||
&& event.getType() == EventType.UNTAP
|
||||
&& event.getTargetId().equals(source.getId())) {
|
||||
&& event.getTargetId().equals(source.getSourceId())) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -73,15 +73,12 @@ public class FilterCreaturePermanent<T extends FilterCreaturePermanent<T>> exten
|
|||
if (!super.match(permanent))
|
||||
return notFilter;
|
||||
|
||||
if (useAttacking && permanent.isAttacking() != attacking) {
|
||||
if (useBlocking) {
|
||||
if ((permanent.getBlocking() > 0) != blocking)
|
||||
return notFilter;
|
||||
} else
|
||||
return notFilter;
|
||||
if (useAttacking) {
|
||||
if (permanent.isAttacking() == attacking) {
|
||||
return !notFilter;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (useBlocking && (permanent.getBlocking() > 0) != blocking)
|
||||
return notFilter;
|
||||
|
||||
|
|
Loading…
Reference in a new issue