forked from SkriptLang/Skript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/patch' into fix/exploded-blocks-remove
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/test/skript/tests/regressions/6643-effhealth slot not accounting existing damage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
test "slot damage accountability": | ||
set {_inv} to chest inventory named "slot accountability" | ||
set slot 0 of {_inv} to diamond sword with damage 100 | ||
|
||
repair slot 0 of {_inv} by 10 | ||
assert damage of slot 0 of {_inv} is 90 with "Durability of slot 0, was not updated correctly" | ||
repair slot 0 of {_inv} | ||
assert durability of slot 0 of {_inv} is maximum durability of slot 0 of {_inv} with "Durability of slot 0, was not fully repaired" |