mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Update SideInBattle.cpp
This commit is contained in:
		
				
					committed by
					
						 Andrii Danylchenko
						Andrii Danylchenko
					
				
			
			
				
	
			
			
			
						parent
						
							ec8898a0e7
						
					
				
				
					commit
					b4c9b81a33
				
			| @@ -17,14 +17,17 @@ void SideInBattle::init(const CGHeroInstance * Hero, const CArmedInstance * Army | ||||
| { | ||||
| 	hero = Hero; | ||||
| 	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) | ||||
| 	switch(armyObject->ID) | ||||
| 	{ | ||||
| 		color = PlayerColor::NEUTRAL; | ||||
| 		case Obj::CREATURE_GENERATOR1: | ||||
| 		case Obj::CREATURE_GENERATOR2: | ||||
| 		case Obj::CREATURE_GENERATOR3: | ||||
| 		case Obj::CREATURE_GENERATOR4: | ||||
| 			color = PlayerColor::NEUTRAL; | ||||
| 			break; | ||||
| 		default: | ||||
| 			color = armyObject->getOwner(); | ||||
| 	} | ||||
|  | ||||
| 	if(color == PlayerColor::UNFLAGGABLE) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user