Quote:
Originally Posted by rodrigj
Hello,
I had the same crash, so I modified the lua script to remove the animation at death of the stack of Ice dragon
I found the lua script here :
E:\Programs\SteamApps\common\King's Bounty - Warriors of the North\sessions\addon
the lua script generating the error for me is :
"unit_features_ondamage.lua" (edit with notedpad) in the "ses.kfs" (open with zip)
the line in error is the 390 : (activate status bar in notepad)
I just put the -- before the line, so it will be inactive in the lua script.
Works like a charm for me.
(sorry for my english)
Hope it can help.
(the file is 1.5mo compressed, so I prefer not join it)
JPR out!
|
I also have the ice dragon bug but the script looks different for me and it's on line 296.
function features_ondamage_dragon_ice(wnm, ts, dead)
if dead then
local ahc = Attack.act_after_hit_cell(0)
local initsize = Attack.act_initsize(ahc)
local manaval, rageval = Game.CurLocRand(initsize, 5*initsize), 0
local dmgts = 1 + Game.Random(0, 10)/100
spawn_energetic_attack(ahc, dmgts, manaval, rageval)
if initsize == 1 then
Attack.log(dmgts, "add_blog_ice_dragon_death_1", "name"," "..blog_side_unit(0), "special", mana_count)
else
--Attack.log(dmgts, "add_blog_ice_dragon_death_2", "name"," "..blog_side_unit(0), "special", mana_count)
end
end
return true
end