Skip to content
Snippets Groups Projects
Commit b6c68c21 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@2791 51575b47-30f0-44d4-a5cc-537603b46e54
parent d88d40ac
No related branches found
No related tags found
No related merge requests found
......@@ -585,6 +585,7 @@ newDamageType{
projector = function(src, x, y, type, dam, tmp)
local target = game.level.map(x, y, Map.ACTOR)
local realdam = 0
tmp = tmp or {}
if target and not tmp[target] then
tmp[target] = true
realdam = DamageType:get(DamageType.PHYSICAL).projector(src, x, y, DamageType.PHYSICAL, dam)
......@@ -604,6 +605,7 @@ newDamageType{
name = "mind knockback", type = "MINDKNOCKBACK",
projector = function(src, x, y, type, dam, tmp)
local target = game.level.map(x, y, Map.ACTOR)
tmp = tmp or {}
if target and not tmp[target] then
tmp[target] = true
DamageType:get(DamageType.PHYSICAL).projector(src, x, y, DamageType.PHYSICAL, dam)
......@@ -622,6 +624,7 @@ newDamageType{
name = "physknockback", type = "PHYSKNOCKBACK",
projector = function(src, x, y, type, dam, tmp)
local target = game.level.map(x, y, Map.ACTOR)
tmp = tmp or {}
if target and not tmp[target] then
tmp[target] = true
DamageType:get(DamageType.PHYSICAL).projector(src, x, y, DamageType.PHYSICAL, dam.dam)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment