Commit afed9ea
Make ConstMediaAction check for media cost later
Throwing MishapNotEnoughMedia early actually broke parity with SpellActions and pre-1.20 behaviour, since validation mishaps comes before MishapNotEnoughMedia. This moves simulated media extraction to after execution to restore parity. Note that this still doesn't let you raycast for free because a mishap thrown will void the new stack.1 parent 295ebdb commit afed9ea
File tree
1 file changed
+3
-2
lines changed- Common/src/main/java/at/petrak/hexcasting/api/casting/castables
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments