You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Have to be careful in weapon scripts. If you have a weapon script that causes damage and
// it listens for the 'hit' event you will have to check to make sure that `damage.source
// !== this` otherwise you could create an infinite loop the weapon's own damage triggering
// its script
yet that's not the case in the code for this weapon that does exactly that. Is it still needed or not?
The text was updated successfully, but these errors were encountered:
It's not needed in ranvier-blade.js because the script isn't dealing damage; it's healing so it won't create an infinite loop with the hit event. If the script was listening to the 'heal' event then the comment would apply mutatis mutandis
The comment says
yet that's not the case in the code for this weapon that does exactly that. Is it still needed or not?
The text was updated successfully, but these errors were encountered: