![]() |
|
King`s Bounty: Warriors of the North Next game in the award-winning King’s Bounty series |
|
Thread Tools | Display Modes |
#10
|
||||
|
||||
![]() Quote:
============= acnt = table.getn(tab_spells) for i = 1, acnt do local spell_name = tab_spells[i].s if Attack.act_is_spell(0, spell_name) then tab_spells[i].prob = 0 else tab_spells[i].prob = math.min(0, math.ceil(tab_spells[i].prob)) end end local spell = random_choice(tab_spells) if spell.s == "dragon_slayer" then spell_dragon_slayer_attack(2, dmgts, 0) elseif spell.s == "dark_knight" then spell_dark_knight_attack(2, dmgts, 0) elseif spell.s == "light_knight" then spell_light_knight_attack(2, dmgts, 0) elseif spell.s == "divine_armor" then spell_divine_armor_attack(2, dmgts, 0) elseif spell.s == "fire_breath" then spell_fire_breath_attack(2, dmgts, 0) elseif spell.s == "haste" then spell_haste_attack(2, dmgts, 0) elseif spell.s == "stone_skin" then spell_stone_skin_attack(2, dmgts, 0) elseif spell.s == "bless" then spell_bless_attack(2, dmgts, 0) end ========== Maybe the key is in there? |
Thread Tools | |
Display Modes | |
|
|