darkmu
Well-Known Member
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
I have an open hand, that is, it was not to damage the summon
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