Skip to content
User Avatar
#3435
Auto-translated
}{0TT@6bI4
Why not simplify the script and use mass casts? UnitCastGlobalSpell(GetAttackerHero(), SPELL_MASS_BLESS).
function Start()
local mana = GetUnitManaPoints(GetAttackerHero())
SetUnitManaPoints(GetAttackerHero(), 200)
sleep(1)
UnitCastGlobalSpell(GetAttackerHero(), SPELL_MASS_BLESS)
sleep(1)
end

Your script probably lacks sleep commands within the for loop; after all, casting functions take time to execute, and it's a noticeable amount of time.

I won't be able to simplify it because the battle takes place between a hero and an army of neutrals, so buffs have to be cast on the neutrals by the hero.
Карты для Heroes V: Повелители орды:
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация