noxworld-dev / opennox

OpenNox main repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blink doesn't work properly.

Ephreaym opened this issue · comments

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.

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?

Good catch! Indeed, could be the same cause!

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

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

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