Skip to content

Instantly share code, notes, and snippets.

@ItsDoot
Created September 17, 2018 04:07
Show Gist options
  • Select an option

  • Save ItsDoot/e2e0a6b636519c620ddc211918ec1f89 to your computer and use it in GitHub Desktop.

Select an option

Save ItsDoot/e2e0a6b636519c620ddc211918ec1f89 to your computer and use it in GitHub Desktop.
suspend fun AbilityContext.runIt() {
// do stuff...
val event = listenForTargeted<DestructEntityEvent>(player) // Player died!
// end ability since dead
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment