forked from External/mage
cleanup AbilityType for easier check that an ability is an activated ability (#12153)
* cleanup AbilityType * further cleanup * cleanup instanceof * tweak formatting * rework Rex * fix mistake in PlayerImpl * cleanup 'instanceof' for 'ActivatedManaAbilityImpl'
This commit is contained in:
parent
62cc49ffa3
commit
85cad4ff1e
118 changed files with 486 additions and 574 deletions
|
|
@ -36,7 +36,7 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
}
|
||||
|
||||
protected TriggeredAbilityImpl(Zone zone, Effect effect, boolean optional) {
|
||||
super(AbilityType.TRIGGERED, zone);
|
||||
super(AbilityType.TRIGGERED_NONMANA, zone);
|
||||
setLeavesTheBattlefieldTrigger(false);
|
||||
if (effect != null) {
|
||||
addEffect(effect);
|
||||
|
|
@ -265,6 +265,7 @@ public abstract class TriggeredAbilityImpl extends AbilityImpl implements Trigge
|
|||
|
||||
/**
|
||||
* For use in generating trigger phrases with correct text
|
||||
*
|
||||
* @return "When " for an effect that always removes the source from the battlefield, otherwise "Whenever "
|
||||
*/
|
||||
protected final String getWhen() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue