-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add potion effect type comparator (#6832)
* DefaultComparators - fix potion effect type match * DefaultComparators - fix potion effect type match - add test * DefaultComparators - update pickle suggestion --------- Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
7 additions
and
0 deletions.
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
3 changes: 3 additions & 0 deletions
3
src/test/skript/tests/regressions/pull-6832-potioneffecttype-compare.sk
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,3 @@ | ||
test "compare potion effect types": | ||
assert nausea = nausea with "2 nausea potion effect types should match" | ||
assert type of (potion effect of nausea for 1 minute) = nausea with "type of potion effect of nausea should equal nausea" |