Hello. I'm using tfs 1.2
Is is possible to change script creature.lua
For:
If player use spells and don't target party member, he won't get damage, but if he target him on battle/right click attack, he will get damage?
Is is possible to change script creature.lua
Lua:
function Creature:onTargetCombat(target)
if not self then
return true
end
if self:isPlayer() and target:isPlayer() then
local party = self:getParty()
if party then
local targetParty = target:getParty()
if targetParty and targetParty == party then
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
end
end
return true
end
For:
If player use spells and don't target party member, he won't get damage, but if he target him on battle/right click attack, he will get damage?