- Removed a superfluous isAI check, handled inside getDamagingSAToChain (one more).

This commit is contained in:
Agetian
2018-12-12 20:39:49 +03:00
parent 9bcdfad726
commit adec6c720f

View File

@@ -241,7 +241,7 @@ public class DamageDealAi extends DamageAiBase {
} else { } else {
// we are about to decide to play this damage spell; if there's something chained to it, reserve mana for // we are about to decide to play this damage spell; if there's something chained to it, reserve mana for
// the second spell so we don't misplay // the second spell so we don't misplay
if (chainDmg != null && ai.getController().isAI()) { if (chainDmg != null) {
AiController aic = ((PlayerControllerAi)ai.getController()).getAi(); AiController aic = ((PlayerControllerAi)ai.getController()).getAi();
aic.reserveManaSourcesForNextSpell(chainDmg.getKey(), sa); aic.reserveManaSourcesForNextSpell(chainDmg.getKey(), sa);
} }