whiteblXK
Active Member
Hello, I have code written in C++, and on my server it doesn't work because it doesn't have a variable "deny". Can someone edit this script so that it was not "deny" variable? Code have to disable monster vs monster damage excluding the attacking player's own summon and vice versa, summons deal other summons damage but not if it summons from the same player.
Code:
if(attacker && target)
{
if(attacker->getMonster() && target->getMonster())
{
if(attacker->isSummon() && target->isSummon())
{
if(!attacker->isPlayerSummon() && !target->isPlayerSummon())
deny = true;
}
else if(attacker->isSummon())
deny = (!attacker->isPlayerSummon() ? true : false);
else if(target->isSummon())
deny = (!target->isPlayerSummon() ? true : false);
else
deny = true;
}
}