noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
451 stars 25 forks source link

Blink doesn't work properly. #587

Open Ephreaym opened 1 year ago

Ephreaym commented 1 year ago

ns.CastSpell(spell.Blink, con.unit, con.unit) doesn't work when there's a timer infront of it. Otherwise it works fine.

Using:

con.spells.BlinkReady = false
ns.NewTrap(con.unit, spell.BLINK)

To workaround it, but it results in issues. Would be a nice fix to get more fluid/normal gameplay for the bots.

dennwc commented 1 year ago

Related to https://github.com/Ephreaym/Nox-AI-script/issues/7

KILAH4716 commented 1 year ago

When I manual cast, I can force spells to be cast on myself when they should be targeted on my enemies, and vice versa. When I cast a teleporting spell (Blink, Teleport to Marker, or Teleport to Target) on "Others," the spell will consume mana and make the KKSSHHEAAAHH sound, but nothing will happen. But if I cast on "Self", it works fine. Maybe something similar is happening here?

dennwc commented 1 year ago

Good catch! Indeed, could be the same cause!

Ephreaym commented 1 year ago

You can’t cast blink, ttt or ttm on another player unless you use a trap normally.

dennwc commented 10 months ago

Recently touched waypoints code that is tightly coupled with Blink. So could port Blink spell next, giving more control to how it works internally.

Ephreaym commented 10 months ago

I’m not sure what you mean. If it it’ll make blink work when cast on the bot that’d be great. 😁