Something more about Enemy and EnemyOnly target type

Issue #347 resolved
ShinichiYao created an issue

Enemy and EnemyOnly target type skills should not cast to self

                if ((target == null) || (target == activeChar))
                {
                    return EMPTY_TARGET_LIST;
                }

Enemy and EnemyOnly target type skills should free for use if player is at clan war with target

        // At Clan War.
        if (player.isAtWarWith(target))
        {
            return new L2Character[]
            {
                target
            };
        }

EnemyOnly target type skills should not cast to Siege mate

        // Not on same Siege Side.
        if (player.isOnSameSiegeSideWith(target))
        {
            player.sendPacket(INCORRECT_TARGET);
            return EMPTY_TARGET_LIST;
        }

Comments (5)

  1. Log in to comment