otavio101
Active Member
- Joined
- Dec 14, 2010
- Messages
- 68
- Reaction score
- 42
I would like the summon spells do not cause damage in another summon , I have managed to not attack.
Sorry my english, google translate.
Thanks!!!
Sorry my english, google translate.
Thanks!!!
Code:
function Creature:onTargetCombat(target)
if not self then
return true
end
if self:isPlayer() and target:isMonster() then
local master = target:getMaster()
if master and master:isPlayer() then
return RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE
end
end
return true
end