forked from External/mage
refactor: improved cards hints support for combined triggers like OrTriggeredAbility
This commit is contained in:
parent
29bab5f614
commit
3f79ffa21a
4 changed files with 35 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ import mage.abilities.TriggeredAbility;
|
|||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.Effects;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.EffectType;
|
||||
import mage.game.Game;
|
||||
|
|
@ -15,6 +16,7 @@ import mage.game.events.GameEvent;
|
|||
import mage.util.CardUtil;
|
||||
import mage.watchers.Watcher;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -86,6 +88,13 @@ public class UntilYourNextTurnDelayedTriggeredAbility extends DelayedTriggeredAb
|
|||
ability.addWatcher(watcher);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Hint> getHints() {
|
||||
List<Hint> res = new ArrayList<>(super.getHints());
|
||||
res.addAll(ability.getHints());
|
||||
return res;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Effects getEffects(Game game, EffectType effectType) {
|
||||
return ability.getEffects(game, effectType);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue