Skript

Skript

788k Downloads

Else not taking into consideration delays

Closed this issue ยท 1 comments

commented

Skript/Server Version

2.12.1
mc 1.21.5

Bug Description

When using a delay in a place that shouldn't be affected, I get an error stating that the damage has been delayed

Expected Behavior

The damage expression should not be erroring as the delay hasn't happened yet, but it's been parsed to think so.

Steps to Reproduce

on damage:
	if damage cause is entity explosion or block explosion:
		set damage to damage / 2
		wait a tick
	else if damage cause is lava:
		set damage to damage / 3

Errors or Screenshots

[06:35:52 INFO]: Can't change the damage anymore after the event has already passed
[06:35:52 INFO]: Line: set damage to damage / 3

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

duplicate of #8139