* Grenzo, Havoc Raiser - added triggered player info in logs and choose mode dialog (#4116, #5282);

This commit is contained in:
Oleg Agafonov 2019-07-05 15:37:17 +04:00
parent 39edc3feef
commit e195bddf09
2 changed files with 31 additions and 22 deletions

View file

@ -62,6 +62,11 @@ public class GoadTargetEffect extends OneShotEffect {
@Override
public String getText(Mode mode) {
return "goad target " + mode.getTargets().get(0).getTargetName() + ". <i>(Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.)</i>";
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
return "goad target " + (!mode.getTargets().isEmpty() ? mode.getTargets().get(0).getTargetName() : " creature")
+ ". <i>(Until your next turn, that creature attacks each combat if able and attacks a player other than you if able.)</i>";
}
}