use of mage.abilities.hint.StaticHint in project mage by magefree.
the class VitoThornOfTheDuskRoseTriggeredAbility method checkTrigger.
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getPlayerId().equals(getControllerId())) {
MageObject mageObject = game.getObject(event.getSourceId());
this.getEffects().clear();
this.getHints().clear();
this.addHint(new StaticHint("Lose life amount: " + event.getAmount()));
if (mageObject != null) {
this.addHint(new StaticHint("Caused by: " + mageObject.getLogName()));
}
this.addEffect(new LoseLifeTargetEffect(event.getAmount()));
return true;
}
return false;
}
Aggregations