Connection ErrorBad RequestSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
Well, after a battle with the hero 'Berein', if he wins, the number of enemy creatures killed should be displayed, and he should receive 100% of their bones:smile51: :smile51: :smile51:
function combat_results(c) local we = -1 if GetSavedCombatArmyPlayer(c, 1) == PLAYER_1 then we = 1 end if GetSavedCombatArmyPlayer(c, 0) == PLAYER_1 then we = 0 end if we ~= -1 then local they = 1 - we if GetSavedCombatArmyHero(c,we) == "Berein" then local stackscount = GetSavedCombatArmyCreaturesCount(c, they) for i=0,stackscount-1 do local creature, creaturescount, died = GetSavedCombatArmyCreatureInfo(c, they, i) if died > 0 then AddHeroCreatures('Berein', 29, died) end end end end end