Skip to content

Commit 571042b

Browse files
authored
Merge branch 'dev/feature' into dev/feature
2 parents 69741af + b785591 commit 571042b

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed
Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
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.
14
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+
48
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}

0 commit comments

Comments
 (0)