Skip to content
User Avatar
#4070
Auto-translated
}{0TT@6bI4
The KnowHeroSpell function is not working as expected. The following code works, I have verified it:
function AlaricSpec()
    while 1 do
      if KnowHeroSpell("Alaric", SPELL_HASTE) then
        TeachHeroSpell("Alaric", SPELL_SLOW)
      end
    sleep(1)
    end
end

startThread(AlaricSpec)

The "Trigger not found" error in the console is not related to this code. It is likely that you have an error in a trigger earlier in the script, which is interrupting the further execution of the script, including Alaric's specialization. Look for where you made a mistake in the trigger name!



The error appeared specifically when Alaric's specialization was in the code. After removing it from the code, the error disappeared. I will check it later.
Модификация "New Era": 2%