GArray<L2Character> target = new GArray<L2Character>();
target.add(player);
if (!player.isMageClass() || player.getTemplate().race == Race.orc) {
for (int[] buff : _warrBuff) {
if (lvl >= buff[0] && lvl <= buff[1]) {
broadcastPacket(new MagicSkillUse(this, player, buff[2], buff[3], 0, 0));
callSkill(SkillTable.getInstance().getInfo(buff[2], buff[3]), target, true);
}
}
} else {
for (int[] buff : _mageBuff) {
if (lvl >= buff[0] && lvl <= buff[1]) {
broadcastPacket(new MagicSkillUse(this, player, buff[2], buff[3], 0, 0));
callSkill(SkillTable.getInstance().getInfo(buff[2], buff[3]), target, true);
}
}
}
if (Config.ALT_BUFF_SUMMON && player.getPet() != null && !player.getPet().isDead()) {
target.clear();
target = new GArray<L2Character>();
target.add(player.getPet());
for (int[] buff : _summonBuff) {
if (lvl >= buff[0] && lvl <= buff[1]) {
broadcastPacket(new MagicSkillUse(this, player.getPet(), buff[2], buff[3], 0, 0));
callSkill(SkillTable.getInstance().getInfo(buff[2], buff[3]), target, true);
}
}
}
}