mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
Fixed HeavyArbalest. +1 test passed.
This commit is contained in:
parent
a96bb99199
commit
16c873dc2c
3 changed files with 14 additions and 5 deletions
|
|
@ -41,6 +41,7 @@ import mage.cards.CardImpl;
|
|||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetCreatureOrPlayer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -108,7 +109,13 @@ class HeavyArbalestEffect extends ReplacementEffectImpl<HeavyArbalestEffect> {
|
|||
if (game.getTurn().getStepType() == PhaseStep.UNTAP
|
||||
&& event.getType() == EventType.UNTAP
|
||||
&& event.getTargetId().equals(source.getSourceId())) {
|
||||
return true;
|
||||
Permanent p = game.getPermanent(source.getSourceId());
|
||||
for (Ability ability : p.getAbilities()) {
|
||||
if (ability.getRule().startsWith(staticText)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
used = true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue