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

TFS 1.X+ TFS 1.2 party spells no damage/battle damage

olekpro

Member
Joined
Nov 1, 2014
Messages
121
Reaction score
6
Hello. I'm using tfs 1.2
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?
 
Back
Top