mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Get rid of global static Card cache and hang it off the Game instead.
This paves the way for having multiple simulataneous game objects (e.g. for simulation).
This commit is contained in:
@@ -171,7 +171,7 @@ public class AnimateAi extends SpellAbilityAi {
|
||||
}
|
||||
|
||||
if (!SpellAbilityAi.isSorcerySpeed(sa)) {
|
||||
Card animatedCopy = CardFactory.getCard(c.getPaperCard(), aiPlayer);
|
||||
Card animatedCopy = CardFactory.getCard(c.getPaperCard(), aiPlayer, c.getGame());
|
||||
AnimateAi.becomeAnimated(animatedCopy, c.hasSickness(), sa);
|
||||
if (ph.isPlayerTurn(aiPlayer) && !ComputerUtilCard.doesSpecifiedCreatureAttackAI(aiPlayer, animatedCopy)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user