Open Znote opened 2 years ago
The effects are showing to me. They probably fixed who knows .
The effects are showing to me. They probably fixed who knows .
you use monster form xml, Znote test in revscript, bug is here
@Znote target = false
break this
Toggling target to true fixed this indeed. Weird... What does actually the target flag do? I mean it targets the creature when I attack someone anyway? I guess it forces Combat execution variant type 3(position) instead of 1(creature) in the combat? Shouldn't it still perform shootEffect?
Shouldn't it still perform shootEffect?
if there is no target, there is no "need" for a shootEffect to be executed, because the code was made to be executed on self and not on target
IMO we should give a warning to any combat that uses range
but sets target
to false, to prevent this.
Before creating an issue, please ensure:
Steps to reproduce (include any configuration/script required to reproduce)
Create file
data/monster/lua/testhunter.lua
:Login on GM, perform the talkactions/spells:
/m test hunter
andutevo res "test hunter
Attack the monster spawned with
/m
Expected behaviour
The two test creatures should start shooting arrows at each other
Actual behaviour
No shooting effect
Environment
TFS 1.5 master (27. december), default datapack, Ubuntu 20.04