mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Set the original host on subabilities and additional abilities, fixes a crash with Myr Welder + Ornate Kanzashi.
This commit is contained in:
@@ -400,6 +400,14 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
}
|
||||
public void setOriginalHost(final Card c) {
|
||||
grantorCard = c;
|
||||
for (List<AbilitySub> addSaList : this.getAdditionalAbilityLists().values()) {
|
||||
for (SpellAbility addSa : addSaList) {
|
||||
addSa.setOriginalHost(c);
|
||||
}
|
||||
}
|
||||
if (this.getSubAbility() != null) {
|
||||
this.getSubAbility().setOriginalHost(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user