Connection ErrorBad RequestThis page went staleSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
This page went stale
Your security token was rejected, usually because the page sat open too long or you signed in elsewhere. Nothing was saved. Reload the page and try again.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
So, does this mean I need to emulate casting spells for the mobs?
Another question: is it possible to make a mob cast a spell, say, Haste, at an expert level without editing the mob itself? Only through a script.
No, if a creature doesn't explicitly have a spell assigned, it will cast it at the advanced level. If I need a creature to cast a spell under specific conditions or at a specific level, I use hidden creatures with spells explicitly assigned to them. In battle, I summon the hidden creature -> it casts the spell -> I remove the creature. With this scheme, the appearance of the creature remains unnoticed. Example code (a working example from NHF):
-- summon AddCreature(side, HELPER, 30, -1, -1, nil, 'fiona_sorrow_helper') while not exist('fiona_sorrow_helper') do sleep() end -- cast for creature, _ in enemy_stacks_to_sorrow do pcall(UnitCastAimedSpell, 'fiona_sorrow_helper', SPELL_SORROW, creature) end -- remove the creature removeUnit('fiona_sorrow_helper') while exist('fiona_sorrow_helper') do sleep() end