mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Removed a superfluous isAI check, handled inside getDamagingSAToChain.
This commit is contained in:
@@ -226,7 +226,7 @@ public class DamageDealAi extends DamageAiBase {
|
|||||||
Pair<SpellAbility, Integer> chainDmg = getDamagingSAToChain(ai, sa, damage);
|
Pair<SpellAbility, Integer> chainDmg = getDamagingSAToChain(ai, sa, damage);
|
||||||
|
|
||||||
// test what happens if we chain this to another damaging spell
|
// test what happens if we chain this to another damaging spell
|
||||||
if (chainDmg != null && ai.getController().isAI()) {
|
if (chainDmg != null) {
|
||||||
int extraDmg = chainDmg.getValue();
|
int extraDmg = chainDmg.getValue();
|
||||||
boolean willTargetIfChained = this.damageTargetAI(ai, sa, dmg + extraDmg, false);
|
boolean willTargetIfChained = this.damageTargetAI(ai, sa, dmg + extraDmg, false);
|
||||||
if (!willTargetIfChained) {
|
if (!willTargetIfChained) {
|
||||||
|
|||||||
Reference in New Issue
Block a user