mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Temporary fix [attention required]: fill Execute parameter for SAs that are parented to Charm API. Fixes Sapphire Charm first ability crashing. Most likely requires a different fix, please correct.
This commit is contained in:
@@ -240,7 +240,10 @@ public final class AbilityFactory {
|
||||
}
|
||||
}
|
||||
|
||||
if (type != AbilityRecordType.SubAbility || parent == null) {
|
||||
if (hostCard.getName().equals("Sapphire Charm")) {
|
||||
System.out.println("Type: " + type + ", Parent: " + parent);
|
||||
}
|
||||
if (type != AbilityRecordType.SubAbility || parent == null || parent.getApi() == ApiType.Charm) {
|
||||
for (final String key : additionalAbilityKeys) {
|
||||
if (mapParams.containsKey(key) && spellAbility.getAdditonalAbility(key) == null) {
|
||||
spellAbility.setAdditionalAbility(key, getSubAbility(hostCard, mapParams.get(key), spellAbility));
|
||||
|
||||
Reference in New Issue
Block a user