If you get stung by one you can still attack it! It works at least on mobile...

More Cnidaria Encountering Tips