Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix Rainbowbeam and Basketballs #1459

Merged
merged 1 commit into from

2 participants

@CalebJohn
Owner

changes node:die to node:hurt

fixes #1457

@kyleconroy kyleconroy merged commit 859204c into hawkthorne:master

1 check passed

Details default The Travis CI build passed
@CalebJohn CalebJohn referenced this pull request
Closed

Enemy Attack Crashing #1478

@CalebJohn CalebJohn deleted the CalebJohn:proj-die branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 20, 2013
  1. @CalebJohn

    fix crashing on collision

    CalebJohn authored
This page is out of date. Refresh to see the latest.
View
2  src/nodes/projectiles/basketball.lua
@@ -16,7 +16,7 @@ return{
collide = function(node, dt, mtv_x, mtv_y,projectile)
if not node.isPlayer then return end
if projectile.thrown then
- node:die(projectile.damage)
+ node:hurt(projectile.damage)
end
end,
collide_end = function(node, dt ,projectile)
View
2  src/nodes/projectiles/rainbowbeam.lua
@@ -29,7 +29,7 @@ return{
collide = function(node, dt, mtv_x, mtv_y,projectile)
if not node.isPlayer then return end
if projectile.thrown then
- node:die(projectile.damage)
+ node:hurt(projectile.damage)
end
end,
update = function(dt,projectile)
Something went wrong with that request. Please try again.