File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
src/test/skript/tests/regressions Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change
1
+ # This test is to see if the `is burning` condition works properly.
2
+ # Before, something like `if {x} is burning` would try to compare {x} to the burning damage cause
3
+ # instead of whether or not the entity was burning.
1
4
test "burning":
2
- spawn a pig at event-location
3
- set {_pig} to the last spawned pig
5
+ spawn a pig at event-location:
6
+ set {_pig} to entity
7
+
4
8
assert "burning" parsed as damage cause is burning with "burning damage cause compare"
5
- set burning time of {_pig} to 9000 ticks
6
- wait a tick
7
- assert entity within {_pig} is burning with "is burning failed"
8
- assert {_pig} is burning with "is burning failed ##2"
9
- clear entity within {_pig}
9
+
10
+ ignite {_pig}
11
+ assert entity within {_pig} is burning with "entity within is burning failed"
12
+ assert {_pig} is burning with "is burning failed"
13
+
14
+ delete entity within {_pig}
You can’t perform that action at this time.
0 commit comments