mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixed the Wall of Reverence bug. It appears that the AI was targeting the first creature to come into play:
CardListUtil.sortAttack(validTargets); Card c = creats.get(0); rather than the creature with the highest power: Card c = validTargets.get(0);
This commit is contained in:
@@ -3608,7 +3608,8 @@ public class GameActionUtil {
|
|||||||
else//computer
|
else//computer
|
||||||
{
|
{
|
||||||
CardListUtil.sortAttack(validTargets);
|
CardListUtil.sortAttack(validTargets);
|
||||||
Card c = creats.get(0);
|
Card c = validTargets.get(0);
|
||||||
|
// Card c = creats.get(0);
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
int power = c.getNetAttack();
|
int power = c.getNetAttack();
|
||||||
PlayerLife life = AllZone.GameAction.getPlayerLife(player);
|
PlayerLife life = AllZone.GameAction.getPlayerLife(player);
|
||||||
@@ -3617,11 +3618,14 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
} // resolve
|
} // resolve
|
||||||
}; // ability
|
}; // ability
|
||||||
ability.setStackDescription("Wall of Reverence - "
|
StringBuffer sb = new StringBuffer();
|
||||||
+ player + " gains life equal to target creature's power.");
|
sb.append("Wall of Reverence - ").append(player).append(" gains life equal to target creature's power.");
|
||||||
|
ability.setStackDescription(sb.toString());
|
||||||
|
// ability.setStackDescription("Wall of Reverence - "
|
||||||
|
// + player + " gains life equal to target creature's power.");
|
||||||
AllZone.Stack.add(ability);
|
AllZone.Stack.add(ability);
|
||||||
}
|
}
|
||||||
}
|
}//endOfTurn_Wall_Of_Reverence()
|
||||||
|
|
||||||
public static void endOfTurn_Predatory_Advantage()
|
public static void endOfTurn_Predatory_Advantage()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user