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

player attacking summon (pet)

darkmu

Well-Known Member
Joined
Aug 26, 2007
Messages
274
Solutions
1
Reaction score
50
Location
Paraná,Brazil
What is happening is that the spells in areas are attacking the pet (summon) even with an open hand, in which case I would like you to attack the summons only when the person closes the hand.

TFS 1.3

creatures.lua
Lua:
    if ((target:isMonster() and self:isPlayer() and target:getType():isPet() and target:getMaster() == self) or (self:isMonster() and target:isPlayer() and self:getType():isPet() and self:getMaster() == target)) then
        return RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE
    end
    
    local master = self:getMaster()
    if master and master:isPlayer() and target and target:isPlayer() and master:hasSecureMode() then
        return RETURNVALUE_NOTPOSSIBLE
    end

I have an open hand, that is, it was not to damage the summon

1610216550264.png
 
Back
Top