Bug Closed · Resolved

[Bug] "target" is null for player skill

#3080 opened by Unknown 4 years ago

Unknownreported this bug

Hello. I'm making a skill for the players. I will use similar skill with a MMOCore. I want to run another skill when there is no target. Mechanic stops working before orElseCast is run. It affects a lot of Mechanics. You can see some of what I found below.

[Legacy attachment omitted]

Skills: [Legacy attachment omitted]

projectile: [Legacy attachment omitted]

orbital: [Legacy attachment omitted]

missile: [Legacy attachment omitted]

shoot: [Legacy attachment omitted]

Unknowncommented

I get this error when I move TargetConditions to projectile skill.

[Legacy attachment omitted]

orElseCast working if target is mob. If target is block orElseCast doesn't work.

Unknowncommented

Adding @TargetLocation fixed the null error but I can't run any skill if projectile hit block. How can i fix this ?

Unknowncommented

Can we get onNoTarget/onNoHit similar to Cast Mechanic ?

Sign in to join the discussion.