Thread: Ice Dragon Bug?
View Single Post
  #4  
Old 11-03-2012, 11:16 AM
rodrigj rodrigj is offline
Approved Member
 
Join Date: Jun 2010
Posts: 10
Default

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)

Quote:
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_1", "name"," "..blog_side_unit(0), "special", mana_count)
end
end
return true
end
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!
Reply With Quote