mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixed the AI crewing an already animated vehicle.
This commit is contained in:
@@ -170,6 +170,10 @@ public class AnimateAi extends SpellAbilityAi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!SpellAbilityAi.isSorcerySpeed(sa) && !sa.hasParam("Permanent")) {
|
if (!SpellAbilityAi.isSorcerySpeed(sa) && !sa.hasParam("Permanent")) {
|
||||||
|
if (sa.hasParam("Crew") && c.isCreature()) {
|
||||||
|
// Do not try to crew a vehicle which is already a creature
|
||||||
|
return false;
|
||||||
|
}
|
||||||
Card animatedCopy = becomeAnimated(c, sa);
|
Card animatedCopy = becomeAnimated(c, sa);
|
||||||
if (ph.isPlayerTurn(aiPlayer)
|
if (ph.isPlayerTurn(aiPlayer)
|
||||||
&& !ComputerUtilCard.doesSpecifiedCreatureAttackAI(aiPlayer, animatedCopy)) {
|
&& !ComputerUtilCard.doesSpecifiedCreatureAttackAI(aiPlayer, animatedCopy)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user