mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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
|
||||
{
|
||||
CardListUtil.sortAttack(validTargets);
|
||||
Card c = creats.get(0);
|
||||
Card c = validTargets.get(0);
|
||||
// Card c = creats.get(0);
|
||||
if (c != null) {
|
||||
int power = c.getNetAttack();
|
||||
PlayerLife life = AllZone.GameAction.getPlayerLife(player);
|
||||
@@ -3617,11 +3618,14 @@ public class GameActionUtil {
|
||||
}
|
||||
} // resolve
|
||||
}; // ability
|
||||
ability.setStackDescription("Wall of Reverence - "
|
||||
+ player + " gains life equal to target creature's power.");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
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);
|
||||
}
|
||||
}
|
||||
}//endOfTurn_Wall_Of_Reverence()
|
||||
|
||||
public static void endOfTurn_Predatory_Advantage()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user