- Joined
- Jan 27, 2016
- Messages
- 89
Del
Last edited:
0 mana cost and no techtree requirements. Spells like this always worked, but for some reason I never managed to order a dummy to cast cloud based abilities.
It adds the ability properly and summons the unit and everything, but never does the order (manual casts work). Changing the base order id does nothing.
Wc3 caches every order ID (in integer form) with a certain target type (e.g. instant, unit/point target). When an ability with a yet uncached order ID is first added to a unit the abilitys target type is cached. This cache counts for all units and all players.
Manually casting an ability does not use the cached target type but the IssueXXXOrder natives (and probably other things) do.
So such a native might try to cast blink (which is point target) as instant target, which will of course fail (though the native might return true).
I have another loosely related question. What about Ids such as firearrowson/off, what can I use those for?
Also, what about Ids of abilities that are both point and unit target (and vice versa)? And Spellbook IDs? Can I just ignore if any of my units have spellbooks or channel based abilities with Ids of other spells the unit has (eg if they have a base ID of roar and the channel/spellbook is also using roar as a base ID)?