mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Clean up
This commit is contained in:
@@ -16,7 +16,6 @@ import forge.game.spellability.SpellAbility;
|
||||
import forge.game.spellability.SpellAbilityPredicates;
|
||||
import forge.game.staticability.StaticAbility;
|
||||
import forge.game.trigger.Trigger;
|
||||
import forge.game.trigger.WrappedAbility;
|
||||
import forge.game.zone.ZoneType;
|
||||
import forge.util.Expressions;
|
||||
|
||||
@@ -111,8 +110,7 @@ public class ForgeScript {
|
||||
return true;
|
||||
}
|
||||
for (final Trigger trig : cardState.getTriggers()) {
|
||||
WrappedAbility wrap = new WrappedAbility(trig, trig.getOverridingAbility(), sourceController);
|
||||
if (wrap.isManaAbility()) {
|
||||
if (trig.getOverridingAbility() != null && trig.getOverridingAbility().isManaAbility()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,11 +365,11 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
return false; //Loyalty ability, not a mana ability.
|
||||
}
|
||||
// CR 605.1b
|
||||
if (isWrapper() && this.getTrigger().getMode() != TriggerType.TapsForMana) {
|
||||
if (isTrigger() && this.getTrigger().getMode() != TriggerType.TapsForMana) {
|
||||
return false;
|
||||
}
|
||||
|
||||
SpellAbility tail = isWrapper() ? ((WrappedAbility) this).getWrappedAbility() : this;
|
||||
SpellAbility tail = this;
|
||||
while (tail != null) {
|
||||
if (tail.manaPart != null) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user