Fixed Sweeper skill.

This commit is contained in:
MobiusDev
2016-06-18 12:55:12 +00:00
parent 7d95526268
commit f89f1f20f1
8 changed files with 11 additions and 10 deletions

View File

@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.holders.SkillHolder;
*/
public enum CommonSkill
{
SWEEPER(42, 1),
RAID_CURSE(4215, 1),
RAID_CURSE2(4515, 1),
SEAL_OF_RULER(246, 1),

View File

@ -206,7 +206,6 @@ public class SkillCaster implements Runnable
// Stop casting if there is no next phase.
stopCasting(false);
}
}
public boolean startCasting()
@ -545,8 +544,12 @@ public class SkillCaster implements Runnable
}
else if (obj.isMonster() || (obj.isPlayable() && ((obj.getActingPlayer().getPvpFlag() > 0) || (obj.getActingPlayer().getReputation() < 0))))
{
// Supporting players or monsters result in pvpflag.
player.updatePvPStatus();
// Supporting players or monsters result in pvpflag,
// but Sweeper is excluded.
if (obj.isMonster() && (skill.getId() != CommonSkill.SWEEPER.getId()))
{
player.updatePvPStatus();
}
}
}