Compare commits
No commits in common. "2ddc32c4306c3eb79bbaaea3baff6e1aa9086b94" and "d4e351b0804da67a74ca4634cd7e14edd27239e8" have entirely different histories.
2ddc32c430
...
d4e351b080
@ -113,7 +113,7 @@ function attack:cast(caster, target)
|
|||||||
|
|
||||||
--- @type Character
|
--- @type Character
|
||||||
local targetCharacterId = Tree.level.characterGrid:get(target)
|
local targetCharacterId = Tree.level.characterGrid:get(target)
|
||||||
if not targetCharacterId or targetCharacterId == caster.id then return false end
|
if not targetCharacterId then return false end
|
||||||
local targetCharacter = Tree.level.characters[targetCharacterId]
|
local targetCharacter = Tree.level.characters[targetCharacterId]
|
||||||
targetCharacter:try(Tree.behaviors.stats, function(stats)
|
targetCharacter:try(Tree.behaviors.stats, function(stats)
|
||||||
stats.hp = stats.hp - 4
|
stats.hp = stats.hp - 4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user