Sacarus
Member
- Joined
- Mar 15, 2016
- Messages
- 52
- Reaction score
- 7
Hi, i´m trying to avoid damage using onTargetCombat. It looks very simple but i just cant. Return false don´t stop the hit, but if I force some error at the same line, it stops (offcourse i won´t let an error in my code) . I tried monster:removeTarget() but it was unsuccessful, it removes but hits before.
I tried in creature.lua
function CreaturenTargetCombat(target)
print("test")
return false
end
The event is enabled. If i can set the armor of the monster, defense, it all would work, i just want to avoid the damage, that´s the point. I don´t wanna edit source, just in last case. I would appreciate any help.
I tried in creature.lua
function CreaturenTargetCombat(target)
print("test")
return false
end
The event is enabled. If i can set the armor of the monster, defense, it all would work, i just want to avoid the damage, that´s the point. I don´t wanna edit source, just in last case. I would appreciate any help.