Summons cast skills on non flagged players.

This commit is contained in:
MobiusDev
2018-12-29 06:41:10 +00:00
parent 68654aaee3
commit 08294a16cf
40 changed files with 180 additions and 50 deletions

View File

@@ -122,6 +122,12 @@ public class NotFriend implements IAffectObjectHandler
return true;
}
// At this point summon should be prevented from attacking friendly targets.
if (activeChar.isSummon())
{
return true;
}
// By default any flagged/PK player is considered enemy.
return (target.getActingPlayer().getPvpFlag() > 0) || (target.getActingPlayer().getReputation() < 0);
}