activeChar.sendPacket(new SystemMessage(SystemMessageId.ATTACK_FAILED));
}
if (skill.getId() == 345 || skill.getId() == 346) // Sonic Rage or Raging Force
{
EffectCharge effect = (EffectCharge)activeChar.getFirstEffect(L2Effect.EffectType.CHARGE);
if (effect != null)
{
int effectcharge = effect.getLevel();
if (effectcharge < 7)
{
effectcharge++;
effect.addNumCharges(1);
if (activeChar instanceof L2PcInstance)
{
activeChar.sendPacket(new EtcStatusUpdate((L2PcInstance)activeChar));
SystemMessage sm = new SystemMessage(SystemMessageId.FORCE_INCREASED_TO_S1);
sm.addNumber(effectcharge);
activeChar.sendPacket(sm);
}
}
else
{
SystemMessage sm = new SystemMessage(SystemMessageId.FORCE_MAXLEVEL_REACHED);
activeChar.sendPacket(sm);
}
}
else
{
if (skill.getId() == 345) // Sonic Rage
{
L2Skill dummy = SkillTable.getInstance().getInfo(8, 7); // Lv7 Sonic Focus
dummy.getEffects(activeChar, activeChar);
}
else if (skill.getId() == 346) // Raging Force
{
L2Skill dummy = SkillTable.getInstance().getInfo(50, 7); // Lv7 Focused Force
dummy.getEffects(activeChar, activeChar);
}
}
}
//self Effect :]
L2Effect effect = activeChar.getFirstEffect(skill.getId());
if (effect != null && effect.isSelfEffect())
{
//Replace old effect with new one.
effect.exit();
}
skill.getEffectsSelf(activeChar);
}
if (skill.isSuicideAttack())