1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

AI will only ignore garrisons in 'Steadwick Fall' mission (H3 logic)

This commit is contained in:
Ivan Savenko
2024-04-20 17:30:50 +03:00
parent e8e4446886
commit 438ec08d72
5 changed files with 22 additions and 3 deletions

View File

@@ -89,6 +89,20 @@ std::string StartInfo::getCampaignName() const
return VLC->generaltexth->allTexts[508];
}
bool StartInfo::isSteadwickFallCampaignMission() const
{
if (!campState)
return false;
if (campState->getFilename() != "DATA/EVIL1")
return false;
if (campState->currentScenario() != CampaignScenarioID(2))
return false;
return true;
}
void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
{
if(!mi || !mi->mapHeader)