• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

summon vs summon ( no damage onAreaCombat)

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!!!


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
 
That should disable all types of attack and damage. Have you tried if the summon gets damage by another spells by aoe spells.
 
Back
Top