mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- A minor code improvement related to the previous commit.
This commit is contained in:
@@ -677,8 +677,9 @@ public class AiController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private AiPlayDecision canPlaySpellBasic(final Card card, final SpellAbility sa) {
|
private AiPlayDecision canPlaySpellBasic(final Card card, final SpellAbility sa) {
|
||||||
String needsToPlayName = sa != null && sa.isRightSplit() ? "NeedsToPlaySplit" : "NeedsToPlay";
|
boolean isRightSplit = sa != null && sa.isRightSplit();
|
||||||
String needsToPlayVarName = sa != null && sa.isRightSplit() ? "NeedsToPlayVarSplit": "NeedsToPlayVar";
|
String needsToPlayName = isRightSplit ? "NeedsToPlaySplit" : "NeedsToPlay";
|
||||||
|
String needsToPlayVarName = isRightSplit ? "NeedsToPlayVarSplit": "NeedsToPlayVar";
|
||||||
|
|
||||||
if (card.hasSVar(needsToPlayName)) {
|
if (card.hasSVar(needsToPlayName)) {
|
||||||
final String needsToPlay = card.getSVar(needsToPlayName);
|
final String needsToPlay = card.getSVar(needsToPlayName);
|
||||||
|
|||||||
Reference in New Issue
Block a user