mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
DrawEffect > getStackDescription$ add "NumCardsDesc"
This commit is contained in:
@@ -40,7 +40,10 @@ public class DrawEffect extends SpellAbilityEffect {
|
||||
sb.append(" each");
|
||||
}
|
||||
sb.append(Lang.joinVerb(tgtPlayers, " draw")).append(" ");
|
||||
sb.append(numCards == 1 ? "a card" : (Lang.getNumeral(numCards) + " cards"));
|
||||
//if NumCards calculation could change between getStackDescription and resolve, use NumCardsDesc to avoid
|
||||
//a "wrong" stack description
|
||||
sb.append(sa.hasParam("NumCardsDesc") ? sa.getParam("NumCardsDesc") : numCards == 1 ? "a card" :
|
||||
(Lang.getNumeral(numCards) + " cards"));
|
||||
sb.append(".");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user