share/hedgewars/Data/Scripts/Multiplayer/Highlander.lua
changeset 15788 acf70c44065b
parent 14699 368e582fcd18
equal deleted inserted replaced
15787:8bb050e8e40f 15788:acf70c44065b
   321 
   321 
   322 		currHog = CurrentHedgehog
   322 		currHog = CurrentHedgehog
   323 
   323 
   324 		if currHog ~= lastHog then
   324 		if currHog ~= lastHog then
   325 
   325 
   326 			-- re-assign ammo to this guy, so that his entire ammo set will
   326 			-- re-assign ammo to this fellow, so that their entire ammo set will
   327 			-- be visible during another player's turn
   327 			-- be visible during another player's turn
   328 			if lastHog ~= nil and GetHealth(lastHog) then
   328 			if lastHog ~= nil and GetHealth(lastHog) then
   329 				ConvertValues(lastHog)
   329 				ConvertValues(lastHog)
   330 			end
   330 			end
   331 
   331 
   332 			-- give the new hog what he is supposed to have, too
   332 			-- give the new hog what they are supposed to have, too
   333 			ConvertValues(CurrentHedgehog)
   333 			ConvertValues(CurrentHedgehog)
   334 
   334 
   335 		end
   335 		end
   336 
   336 
   337 		lastHog = currHog
   337 		lastHog = currHog