Closed TimeBomb closed 3 years ago
This'll be fixed with the explicit branch as an error would occur upon passing the wrong type to AbilityCooldown.
The reason that it doesn't throw an error when there aren't enough arguments because it tries as often as possible to assume defaults; I can look into that more.
Sliightly interestingly, this compiles successfully:
compiles to:
What the OSTW code instead should look like is:
Note the second AbilityCooldown now has the appropriate EventPlayer argument passed to it. I didn't get any errors that told me this though.
This ticket is essentially a feature request for errors when not enough arguments are passed. Maybe a big ask so feel free to close / leave on backburner, but would be nice :).