View Single Post
  #1  
Old 01-10-2019, 05:12 AM
jelly man jelly man is offline
Approved Member
 
Join Date: Jan 2016
Posts: 2
Default Onslaught adrenaline bug

I've been looking all over trying to find a fix for this bug. From what I've read Onslaught used to correctly divide up the adrenaline among whatever orcs you had, but now it usually gives nothing at all, and sometimes gives a small random amount.

Has anyone found a fix, or know where it might be located in the game files?

I'm trying a workaround for a single orc right now. In the .lua file under the subturn section for each orc I have:

local trophy = Attack.val_restore(unit,"trophy")
if trophy == nil then trophy = 0 end
if trophy == 0 then Attack.val_store(unit,"trophy",20) end
local trophy = Attack.val_restore(unit,"trophy")

Trophy seems to stand for adrenaline here, so it seems like it will give the 20 adrenaline from level 2 Onslaught on the first turn but then won't do anything for the rest of the battle. Unless perhaps adrenaline went down to 0, but most orcs will never go down to 0 if they started at 30 or 40.
Reply With Quote