mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Made a workaround for Issue#457 to prevent from StackOverflowError
This commit is contained in:
parent
135288ec02
commit
acd6514bab
1 changed files with 4 additions and 1 deletions
|
|
@ -1824,7 +1824,10 @@ public abstract class PlayerImpl implements Player, Serializable {
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
for (Ability ability0 : card.getAbilities()) {
|
for (Ability ability0 : card.getAbilities()) {
|
||||||
if (ability0 instanceof AdjustingSourceCosts) {
|
if (ability0 instanceof AdjustingSourceCosts) {
|
||||||
((AdjustingSourceCosts)ability0).adjustCosts(copy, game);
|
// A workaround for Issue#457
|
||||||
|
if (!(ability0 instanceof ConvokeAbility)) {
|
||||||
|
((AdjustingSourceCosts) ability0).adjustCosts(copy, game);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue