jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 88
Hello. Is it a way to make a target definition in spells?
because I already don't have any ideas.
Code:
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if not isPlayer(target) then
doCreatureSay(cid, "you cannot heal a monster!", 19)
return false
end
return doCombat(cid, combat, var)
end