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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user