1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

#1965 - treat dwelling defenders as neutrals

This commit is contained in:
Andrii Danylchenko
2023-07-24 22:21:15 +03:00
parent be3ed014a7
commit ec8898a0e7
4 changed files with 20 additions and 11 deletions

View File

@@ -19,6 +19,14 @@ void SideInBattle::init(const CGHeroInstance * Hero, const CArmedInstance * Army
armyObject = Army;
color = armyObject->getOwner();
if(armyObject->ID == Obj::CREATURE_GENERATOR1
|| armyObject->ID == Obj::CREATURE_GENERATOR2
|| armyObject->ID == Obj::CREATURE_GENERATOR3
|| armyObject->ID == Obj::CREATURE_GENERATOR4)
{
color = PlayerColor::NEUTRAL;
}
if(color == PlayerColor::UNFLAGGABLE)
color = PlayerColor::NEUTRAL;
}