Aura Spells have internal Attach Spell for multiple Enchant Keywords#6996
Conversation
|
@tool4ever i don't know why " Incremental Growth " fails ... that isn't even an Aura?
|
|
@Agetian can you look at the failing test case why the AI has problem with Incremental Growth? |
|
Hmm, not sure about Incremental Growth (and why it isn't targeting correctly in one of the tests) yet, but the immediate failing test for me is testPlayingSorceryPumpSpellsBeforeBlocks, which fails at line 609 of SpellAbilityPickerSimulationTest. What's happening there is the AI is playing a Dwarven Trader and then tries to make the AI decide on playing Furor of the Bitten on it, which is what line 609 is asserting. Furor of the Bitten is indeed affected by this MR, since it uses the new AI SVar for the aura attach. Possibly the SVar isn't accounted for somewhere in the AI code yet? Please let me know if you're able to figure this one out, we can take a look at Incremental Growth next if that causes issues once this immediate test case is fixed. |
AttachAILogic is just turned into AILogic by this, so that shouldn't be the problem. if (c.hasSVar("AttachAILogic")) {
extra += " | AILogic$ " + c.getSVar("AttachAILogic");
}I think the AI needs better logic what it can target with |
|
Yeah, agree about the AI logic improvements, sounds like a good thing to implement 👍 |
|
tests are green, and i did some hard wire that |
|
yea that's what I meant |
I don't know? Like this? You can try it if you want? |
|
@tool4ever can you check why the last change does break the tests again?
Found it! |
2b4e107 to
fa9a193
Compare
|
@tool4ever the MR should be clean now? |
Hopefully yes, but if you can tell me some test cases for that, I can give it a shot and test/trace it in action :) |
|
@Agetian it is mostly the problem that |
|
I agree that it's important to come up with some in-game board states that would be good to check how this works in practice, it's a bit difficult for me to figure out what would be good test cases tbh, but yeah, the automated tests won't help since they use the simulation AI which is a completely different thing in itself :) |
|
@Agetian @tool4ever, something unrelated, that ticked me off before: still shows this in the Log:
i know the spell should not be able to cast, but the Stack Message should still not appear there? |
|
Hmm yeah, not sure what's happening there, probably needs looking into, yes. I'll see if I can figure it out on the upcoming weekend. |
|
Some things that might be done before this MR:
|
tool4ever
left a comment
There was a problem hiding this comment.
I don't know about the final TODO but otherwise it's big enough :p
Closes #169
I can't add the AI flags into the Keyword because of
Tallowisp,so i added Svars instead.
canBeAttached