mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- chainDmg not null is already ensured on top
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user