mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Fix AI cheating when chaining dmg spells with DividedAsYouChoose
This commit is contained in:
@@ -1075,6 +1075,11 @@ public class DamageDealAi extends DamageAiBase {
|
||||
return null;
|
||||
}
|
||||
|
||||
// chaining to this could miscalculate
|
||||
if (sa.isDividedAsYouChoose()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Try to chain damage/debuff effects
|
||||
if (StringUtils.isNumeric(damage) || (damage.startsWith("-") && StringUtils.isNumeric(damage.substring(1)))) {
|
||||
// currently only works for predictable numeric damage
|
||||
|
||||
Reference in New Issue
Block a user