Compare commits
11 Commits
d4e351b080
...
2ddc32c430
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ddc32c430 | |||
| d6a57a9727 | |||
| da2f6d03a3 | |||
| 99fe4c0556 | |||
| 2802570a50 | |||
| 35a7a69bf7 | |||
| 660edc5ef8 | |||
| f1d181fb64 | |||
| b9d2b469c8 | |||
| c1e5ba880d | |||
| 3838037006 |
@ -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 then return false end
|
if not targetCharacterId or targetCharacterId == caster.id 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