Hello,
I am using this script to prevent monsters to hit other monsters.
The good thing,
It is working for monsters vs monsters.
Also monsters vs player's summon.
But not working for player's summon vs monsters. ( normal monster block hits from player's summon )
how to fix that and make player's summon can hit normal monsters?
TFS 0.4
I am using this script to prevent monsters to hit other monsters.
Lua:
function onStatsChange(cid, attacker, type, combat, value)
-- This should block all damage monster cause on eachother expect player summons
if isMonster(cid) and isMonster(attacker) then
local master = getCreatureMaster(cid)
if not master or not isPlayer(master) then
return false
end
end
return true
end
The good thing,
It is working for monsters vs monsters.
Also monsters vs player's summon.
But not working for player's summon vs monsters. ( normal monster block hits from player's summon )
how to fix that and make player's summon can hit normal monsters?
TFS 0.4