mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Tweak StacksHealedOrResurrected
* flags should be bool
This commit is contained in:
		| @@ -1323,7 +1323,7 @@ struct StacksHealedOrResurrected : public CPackForClient //3013 | ||||
| 	{ | ||||
| 		ui32 stackID; | ||||
| 		ui32 healedHP; | ||||
| 		ui8 lowLevelResurrection; //in case this stack is resurrected by this heal, it will be marked as SUMMONED //TODO: replace with separate counter | ||||
| 		bool lowLevelResurrection; //in case this stack is resurrected by this heal, it will be marked as SUMMONED //TODO: replace with separate counter | ||||
| 		template <typename Handler> void serialize(Handler &h, const int version) | ||||
| 		{ | ||||
| 			h & stackID & healedHP & lowLevelResurrection; | ||||
|   | ||||
| @@ -3795,7 +3795,7 @@ bool CGameHandler::makeBattleAction( BattleAction &ba ) | ||||
|  | ||||
| 				StacksHealedOrResurrected::HealInfo hi; | ||||
| 				hi.healedHP = healed; | ||||
| 				hi.lowLevelResurrection = 0; | ||||
| 				hi.lowLevelResurrection = false; | ||||
| 				hi.stackID = destStack->ID; | ||||
|  | ||||
| 				shr.healedStacks.push_back(hi); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user