- chainDmg not null is already ensured on top

This commit is contained in:
Agetian
2018-12-12 20:40:26 +03:00
parent adec6c720f
commit f45bccf71d

View File

@@ -241,10 +241,8 @@ 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) { AiController aic = ((PlayerControllerAi)ai.getController()).getAi();
AiController aic = ((PlayerControllerAi)ai.getController()).getAi(); aic.reserveManaSourcesForNextSpell(chainDmg.getKey(), sa);
aic.reserveManaSourcesForNextSpell(chainDmg.getKey(), sa);
}
} }
} else { } else {
// simple targeting when there is no spell chaining plan // simple targeting when there is no spell chaining plan