Something more about Enemy and EnemyOnly target type
Issue #347
resolved
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)
-
reporter -
-
assigned issue to
-
assigned issue to
-
First code suggestion is correct, but is missing system message.
-
Final report is wrong, skill already works in PVP area without Ctrl.
-
- changed status to resolved
Fixed in fb819771, thanks!
- Log in to comment
Enemy target type skills should free for use in PVP zone with out CtrlPressed.