mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Fixed a NPE on mobile Forge when looking up certain cards with replacement effects (e.g. Kess, Dissident Mage).
This commit is contained in:
@@ -64,7 +64,7 @@ public abstract class ReplacementEffect extends TriggerReplacementBase {
|
|||||||
mapParams.putAll(map);
|
mapParams.putAll(map);
|
||||||
this.setHostCard(host);
|
this.setHostCard(host);
|
||||||
|
|
||||||
if (host != null && mapParams.get("Description").contains("CARDNAME")) {
|
if (host != null && mapParams.containsKey("Description") && mapParams.get("Description").contains("CARDNAME")) {
|
||||||
String desc = TextUtil.fastReplace(mapParams.get("Description"), "CARDNAME", host.toString());
|
String desc = TextUtil.fastReplace(mapParams.get("Description"), "CARDNAME", host.toString());
|
||||||
originalMapParams.put("Description", desc);
|
originalMapParams.put("Description", desc);
|
||||||
mapParams.put("Description", desc);
|
mapParams.put("Description", desc);
|
||||||
|
|||||||
Reference in New Issue
Block a user