mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
[minor] changes to tooltip rule generation
This commit is contained in:
parent
ac5c91763b
commit
5b4c2eb3fa
3 changed files with 13 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ package mage.abilities.decorator;
|
|||
import mage.Constants;
|
||||
import mage.Constants.Duration;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.FixedCondition;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
|
|
@ -103,6 +104,14 @@ public class ConditionalContinousEffect extends ContinuousEffectImpl<Conditional
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText == null || staticText.isEmpty() && this.effect != null) { // usefull for conditional night/day card abilities
|
||||
return effect.getText(mode);
|
||||
}
|
||||
return staticText;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasLayer(Constants.Layer layer) {
|
||||
return effect.hasLayer(layer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue