if (target instanceof L2PcInstance && ((L2PcInstance)target).isInDuel()
&& (skill.getSkillType() == L2Skill.SkillType.DEBUFF ||
skill.getSkillType() == L2Skill.SkillType.BUFF)
&& player.getDuelId() == ((L2PcInstance)target).getDuelId())
{
DuelManager dm = DuelManager.getInstance();
for (L2Effect buff : skill.getEffects(activeChar, target))
if (buff != null) dm.onBuff(((L2PcInstance)target), buff);
}
else
skill.getEffects(activeChar, target);
if (skill.getSkillType() == L2Skill.SkillType.AGGDEBUFF)