Quote:
Originally Posted by Shadan
Thanks for answer.
Another question: I have patch 2 only, so I manually changed several things in Iua-s as I read on this forum. Now hibernation doesn't work in my new game. Bears defend and no hibernation animation nor healing in their next turn. Is there any method to fix this by simple editing?
|
Function for bear sleep is in unit_features.lua
function bear_after_move(pass)
if not pass and Attack.val_restore("was_action") == "0" and not Attack.act_is_spell(0, "effect_sleep") and not Attack.act_is_spell(0, "gorgon_stone_skin") then
effect_sleep_attack(0, 0, 3, true)
if Attack.act_size(0)>1 then
Attack.log(0.001,"add_blog_bsleep_2","name",blog_s ide_unit(0,1))
else
Attack.log(0.001,"add_blog_bsleep_1","name",blog_s ide_unit(0,1))
end
end
return true
end