(final boolean drawbackOnly)
| 7207 | } |
| 7208 | |
| 7209 | public boolean hasETBTrigger(final boolean drawbackOnly) { |
| 7210 | for (final Trigger tr : getTriggers()) { |
| 7211 | if (tr.getMode() != TriggerType.ChangesZone) { |
| 7212 | continue; |
| 7213 | } |
| 7214 | |
| 7215 | if (!ZoneType.Battlefield.toString().equals(tr.getParam("Destination"))) { |
| 7216 | continue; |
| 7217 | } |
| 7218 | |
| 7219 | if (tr.hasParam("ValidCard") && !tr.getParam("ValidCard").contains("Self")) { |
| 7220 | continue; |
| 7221 | } |
| 7222 | if (drawbackOnly) { |
| 7223 | SpellAbility sa = tr.ensureAbility(); |
| 7224 | if (sa == null || sa.isActivatedAbility()) { |
| 7225 | continue; |
| 7226 | } |
| 7227 | } |
| 7228 | return true; |
| 7229 | } |
| 7230 | return false; |
| 7231 | } |
| 7232 | |
| 7233 | public boolean hasETBReplacement() { |
| 7234 | for (final ReplacementEffect re : getReplacementEffects()) { |
no test coverage detected