Minor fixes (#12632)

* Fix Nefarious Imp, Bewitching Leechcraft

* Include zone of cast in game log
This commit is contained in:
ssk97 2024-08-02 15:43:49 -07:00 committed by GitHub
parent 65b513576b
commit ab803079b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 10 deletions

View file

@ -190,14 +190,16 @@ public class Spell extends StackObjectImpl implements Card {
return true;
}
public String getActivatedMessage(Game game) {
public String getActivatedMessage(Game game, Zone fromZone) {
StringBuilder sb = new StringBuilder();
sb.append(" casts ");
if (isCopy()) {
sb.append(" copies ");
} else {
sb.append(" casts ");
sb.append("a copied ");
}
return sb.append(ability.getGameLogMessage(game)).toString();
sb.append(ability.getGameLogMessage(game));
sb.append(" from ");
sb.append(fromZone.toString().toLowerCase(Locale.ENGLISH));
return sb.toString();
}
public String getSpellCastText(Game game) {