Closed ilteroi closed 4 years ago
there is this piece of code in army movement:
if (pOperation->GetEnemy() != NO_PLAYER) { if (GET_TEAM(GET_PLAYER(pOperation->GetEnemy()).getTeam()).IsVassalOfSomeone()) { pOperation->SetToAbort(AI_ABORT_WAR_STATE_CHANGE); return; } }
so it looks like the AI will never attack vassals? is that really the intention?
i guess if they became someone's vassal during the lifetime of the army that would be ok but this is not what's happening.
Intention might be to prevent the AI from DoW'ing vassals, a longstanding bug which pops up every now and again.
I think it just needs a '!is at war' check, which I've now added.
there is this piece of code in army movement:
so it looks like the AI will never attack vassals? is that really the intention?
i guess if they became someone's vassal during the lifetime of the army that would be ok but this is not what's happening.