123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732 |
- /*
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see <http://www.gnu.org/licenses/>.
- */
- package handlers.skillhandlers;
- import java.util.logging.Logger;
- import com.l2jserver.gameserver.ai.CtrlEvent;
- import com.l2jserver.gameserver.ai.CtrlIntention;
- import com.l2jserver.gameserver.ai.L2AttackableAI;
- import com.l2jserver.gameserver.datatables.ExperienceTable;
- import com.l2jserver.gameserver.handler.ISkillHandler;
- import com.l2jserver.gameserver.handler.SkillHandler;
- import com.l2jserver.gameserver.model.L2Effect;
- import com.l2jserver.gameserver.model.L2Object;
- import com.l2jserver.gameserver.model.L2Skill;
- import com.l2jserver.gameserver.model.actor.L2Attackable;
- import com.l2jserver.gameserver.model.actor.L2Character;
- import com.l2jserver.gameserver.model.actor.L2Npc;
- import com.l2jserver.gameserver.model.actor.L2Summon;
- import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jserver.gameserver.model.actor.instance.L2SiegeSummonInstance;
- import com.l2jserver.gameserver.model.item.instance.L2ItemInstance;
- import com.l2jserver.gameserver.network.SystemMessageId;
- import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
- import com.l2jserver.gameserver.skills.Env;
- import com.l2jserver.gameserver.skills.Formulas;
- import com.l2jserver.gameserver.skills.Stats;
- import com.l2jserver.gameserver.templates.skills.L2SkillType;
- import com.l2jserver.gameserver.templates.skills.L2TargetType;
- import com.l2jserver.util.Rnd;
- /**
- * This Handles Disabler skills
- * @author _drunk_
- */
- public class Disablers implements ISkillHandler
- {
- private static final L2SkillType[] SKILL_IDS =
- {
- L2SkillType.STUN,
- L2SkillType.ROOT,
- L2SkillType.SLEEP,
- L2SkillType.CONFUSION,
- L2SkillType.AGGDAMAGE,
- L2SkillType.AGGREDUCE,
- L2SkillType.AGGREDUCE_CHAR,
- L2SkillType.AGGREMOVE,
- L2SkillType.MUTE,
- L2SkillType.FAKE_DEATH,
- L2SkillType.CONFUSE_MOB_ONLY,
- L2SkillType.NEGATE,
- L2SkillType.CANCEL_DEBUFF,
- L2SkillType.PARALYZE,
- L2SkillType.ERASE,
- L2SkillType.BETRAY,
- L2SkillType.DISARM
- };
-
- protected static final Logger _log = Logger.getLogger(L2Skill.class.getName());
-
-
- /**
- *
- * @see com.l2jserver.gameserver.handler.ISkillHandler#useSkill(com.l2jserver.gameserver.model.actor.L2Character, com.l2jserver.gameserver.model.L2Skill, com.l2jserver.gameserver.model.L2Object[])
- */
- @Override
- public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets)
- {
- L2SkillType type = skill.getSkillType();
-
- byte shld = 0;
- boolean ss = false;
- boolean sps = false;
- boolean bss = false;
-
- L2ItemInstance weaponInst = activeChar.getActiveWeaponInstance();
- if (weaponInst != null)
- {
- if (skill.isMagic())
- {
- if (weaponInst.getChargedSpiritshot() == L2ItemInstance.CHARGED_BLESSED_SPIRITSHOT)
- {
- bss = true;
- if (skill.getId() != 1020) // vitalize
- weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_NONE);
- }
- else if (weaponInst.getChargedSpiritshot() == L2ItemInstance.CHARGED_SPIRITSHOT)
- {
- sps = true;
- if (skill.getId() != 1020) // vitalize
- weaponInst.setChargedSpiritshot(L2ItemInstance.CHARGED_NONE);
- }
- }
- else
- ss = true;
- }
- // If there is no weapon equipped, check for an active summon.
- else if (activeChar instanceof L2Summon)
- {
- L2Summon activeSummon = (L2Summon) activeChar;
-
- if (skill.isMagic())
- {
- if (activeSummon.getChargedSpiritShot() == L2ItemInstance.CHARGED_BLESSED_SPIRITSHOT)
- {
- bss = true;
- activeSummon.setChargedSpiritShot(L2ItemInstance.CHARGED_NONE);
- }
- else if (activeSummon.getChargedSpiritShot() == L2ItemInstance.CHARGED_SPIRITSHOT)
- {
- sps = true;
- activeSummon.setChargedSpiritShot(L2ItemInstance.CHARGED_NONE);
- }
- }
- else
- ss = true;
- }
- else if (activeChar instanceof L2Npc)
- {
- ss = ((L2Npc) activeChar)._soulshotcharged;
- ((L2Npc) activeChar)._soulshotcharged = false;
- bss = ((L2Npc) activeChar)._spiritshotcharged;
- ((L2Npc) activeChar)._spiritshotcharged = false;
- }
-
- for (L2Object obj: targets)
- {
- if (!(obj instanceof L2Character))
- continue;
- L2Character target = (L2Character) obj;
- if (target.isDead() || ((target.isInvul() && type != L2SkillType.NEGATE) && !target.isParalyzed())) // bypass if target is null, dead or invul (excluding invul from Petrification)
- continue;
-
- shld = Formulas.calcShldUse(activeChar, target, skill);
-
- switch (type)
- {
- case BETRAY:
- {
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- else
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- break;
- }
- case FAKE_DEATH:
- {
- // stun/fakedeath is not mdef dependant, it depends on lvl difference, target CON and power of stun
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- break;
- }
- case ROOT:
- case DISARM:
- case STUN:
- {
- if (Formulas.calcSkillReflect(target, skill) == Formulas.SKILL_REFLECT_SUCCEED)
- target = activeChar;
-
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- }
- break;
- }
- case SLEEP:
- case PARALYZE: //use same as root for now
- {
- if (Formulas.calcSkillReflect(target, skill) == Formulas.SKILL_REFLECT_SUCCEED)
- target = activeChar;
-
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- }
- break;
- }
- case CONFUSION:
- case MUTE:
- {
- if (Formulas.calcSkillReflect(target, skill) == Formulas.SKILL_REFLECT_SUCCEED)
- target = activeChar;
-
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- {
- // stop same type effect if available
- L2Effect[] effects = target.getAllEffects();
- for (L2Effect e : effects)
- {
- if (e.getSkill().getSkillType() == type)
- e.exit();
- }
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- }
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- }
- break;
- }
- case CONFUSE_MOB_ONLY:
- {
- // do nothing if not on mob
- if (target instanceof L2Attackable)
- {
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- {
- L2Effect[] effects = target.getAllEffects();
- for (L2Effect e : effects)
- {
- if (e.getSkill().getSkillType() == type)
- e.exit();
- }
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- }
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- }
- }
- else
- activeChar.sendPacket(SystemMessageId.TARGET_IS_INCORRECT);
- break;
- }
- case AGGDAMAGE:
- {
- if (target instanceof L2Attackable)
- target.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, activeChar, (int) ((150 * skill.getPower()) / (target.getLevel() + 7)));
- // TODO [Nemesiss] should this have 100% chance?
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- break;
- }
- case AGGREDUCE:
- {
- // these skills needs to be rechecked
- if (target instanceof L2Attackable)
- {
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
-
- double aggdiff = ((L2Attackable) target).getHating(activeChar) - target.calcStat(Stats.AGGRESSION, ((L2Attackable) target).getHating(activeChar), target, skill);
-
- if (skill.getPower() > 0)
- ((L2Attackable) target).reduceHate(null, (int) skill.getPower());
- else if (aggdiff > 0)
- ((L2Attackable) target).reduceHate(null, (int) aggdiff);
- }
- // when fail, target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
- break;
- }
- case AGGREDUCE_CHAR:
- {
- // these skills needs to be rechecked
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- {
- if (target instanceof L2Attackable)
- {
- L2Attackable targ = (L2Attackable) target;
- targ.stopHating(activeChar);
- if (targ.getMostHated() == null && targ.hasAI() && targ.getAI() instanceof L2AttackableAI)
- {
- ((L2AttackableAI) targ.getAI()).setGlobalAggro(-25);
- targ.clearAggroList();
- targ.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
- targ.setWalking();
- }
- }
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- }
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
- }
- break;
- }
- case AGGREMOVE:
- {
- // these skills needs to be rechecked
- if (target instanceof L2Attackable && !target.isRaid())
- {
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- {
- if (skill.getTargetType() == L2TargetType.TARGET_UNDEAD)
- {
- if (target.isUndead())
- ((L2Attackable) target).reduceHate(null, ((L2Attackable) target).getHating(((L2Attackable) target).getMostHated()));
- }
- else
- ((L2Attackable) target).reduceHate(null, ((L2Attackable) target).getHating(((L2Attackable) target).getMostHated()));
- }
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
- }
- }
- else
- target.getAI().notifyEvent(CtrlEvent.EVT_ATTACKED, activeChar);
- break;
- }
- case ERASE:
- {
- // Doesn't affect siege golem or wild hog cannon
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss) && !(target instanceof L2SiegeSummonInstance))
- {
- final L2PcInstance summonOwner = ((L2Summon) target).getOwner();
- final L2Summon summon = summonOwner.getPet();
- if (summon != null)
- {
- // TODO: Retail confirmation for Soul of the Phoenix required.
- if (summon.isPhoenixBlessed())
- {
- if (summon.isNoblesseBlessed())
- {
- summon.stopNoblesseBlessing(null);
- }
- }
- else if (summon.isNoblesseBlessed())
- {
- summon.stopNoblesseBlessing(null);
- }
- else
- {
- summon.stopAllEffectsExceptThoseThatLastThroughDeath();
- }
- summon.unSummon(summonOwner);
- summonOwner.sendPacket(SystemMessageId.YOUR_SERVITOR_HAS_VANISHED);
- }
- }
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- }
- break;
- }
- case CANCEL_DEBUFF:
- {
- L2Effect[] effects = target.getAllEffects();
-
- if (effects == null || effects.length == 0)
- break;
-
- int count = (skill.getMaxNegatedEffects() > 0) ? 0 : -2;
- for (L2Effect e : effects)
- {
- if (e == null
- || !e.getSkill().isDebuff()
- || !e.getSkill().canBeDispeled())
- continue;
-
- e.exit();
-
- if (count > -1)
- {
- count++;
- if (count >= skill.getMaxNegatedEffects())
- break;
- }
- }
-
- break;
- }
- case CANCEL_STATS: // same than CANCEL but
- {
- if (Formulas.calcSkillReflect(target, skill) == Formulas.SKILL_REFLECT_SUCCEED)
- target = activeChar;
-
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- {
- L2Effect[] effects = target.getAllEffects();
-
- int max = skill.getMaxNegatedEffects();
- if (max == 0)
- max = Integer.MAX_VALUE; //this is for RBcancells and stuff...
-
- if (effects.length >= max)
- effects = SortEffects(effects);
-
- //for(int i = 0; i < effects.length;i++)
- // activeChar.sendMessage(Integer.toString(effects[i].getSkill().getMagicLevel()));
-
- int count = 1;
-
- for (L2Effect e : effects)
- {
- // do not delete signet effects!
- switch (e.getEffectType())
- {
- case SIGNET_GROUND:
- case SIGNET_EFFECT:
- continue;
- }
-
- switch(e.getSkill().getId())
- {
- case 4082:
- case 4215:
- case 4515:
- case 5182:
- case 110:
- case 111:
- case 1323:
- case 1325:
- continue;
- }
-
- switch (e.getSkill().getSkillType())
- {
- case BUFF:
- case HEAL_PERCENT:
- case COMBATPOINTHEAL:
- break;
- default:
- continue;
- }
-
- double rate = 1 - (count / max);
- if (rate < 0.33)
- rate = 0.33;
- else if (rate > 0.95)
- rate = 0.95;
- if (Rnd.get(1000) < (rate * 1000))
- {
- boolean exit = false;
- for (L2SkillType skillType : skill.getNegateStats())
- {
- if (skillType == e.getSkillType())
- {
- exit = true;
- break;
- }
- }
-
- if (exit)
- {
- e.exit();
- if (count == max)
- break;
-
- count++;
- }
- }
- }
- }
- else
- {
- if (activeChar instanceof L2PcInstance)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);
- sm.addCharName(target);
- sm.addSkillName(skill);
- activeChar.sendPacket(sm);
- }
- }
-
- break;
- }
- case NEGATE:
- {
- if (Formulas.calcSkillReflect(target, skill) == Formulas.SKILL_REFLECT_SUCCEED)
- target = activeChar;
-
- if (skill.getNegateId().length != 0)
- {
- for (int i = 0; i < skill.getNegateId().length; i++)
- {
- if (skill.getNegateId()[i] != 0)
- target.stopSkillEffects(skill.getNegateId()[i]);
- }
- }
- else if (skill.getNegateAbnormals() != null)
- {
- for (L2Effect effect : target.getAllEffects())
- {
- if (effect == null)
- continue;
-
- for (String negateAbnormalType : skill.getNegateAbnormals().keySet())
- {
- if (negateAbnormalType.equalsIgnoreCase(effect.getAbnormalType()) && skill.getNegateAbnormals().get(negateAbnormalType) >= effect.getAbnormalLvl())
- effect.exit();
- }
- }
- }
- else // all others negate type skills
- {
- int removedBuffs = (skill.getMaxNegatedEffects() > 0) ? 0 : -2;
-
- for (L2SkillType skillType : skill.getNegateStats())
- {
- if (removedBuffs > skill.getMaxNegatedEffects())
- break;
-
- switch(skillType)
- {
- case BUFF:
- int lvlmodifier = 52 + skill.getMagicLevel() * 2;
- if (skill.getMagicLevel() == 12)
- lvlmodifier = (ExperienceTable.getInstance().getMaxLevel()-1);
- int landrate = 90;
- if ((target.getLevel() - lvlmodifier) > 0)
- landrate = 90 - 4 * (target.getLevel() - lvlmodifier);
-
- landrate = (int) activeChar.calcStat(Stats.CANCEL_VULN, landrate, target, null);
-
- if (Rnd.get(100) < landrate)
- removedBuffs += negateEffect(target, L2SkillType.BUFF, -1, skill.getMaxNegatedEffects());
- break;
- case HEAL:
- ISkillHandler Healhandler = SkillHandler.getInstance().getHandler(L2SkillType.HEAL);
- if (Healhandler == null)
- {
- _log.severe("Couldn't find skill handler for HEAL.");
- continue;
- }
- L2Character tgts[] = new L2Character[]{target};
- Healhandler.useSkill(activeChar, skill, tgts);
- break;
- default:
- removedBuffs += negateEffect(target, skillType, skill.getNegateLvl(), skill.getMaxNegatedEffects());
- break;
- }//end switch
- }//end for
- }//end else
-
- if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))
- {
- skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));
- }
- }// end case
- }//end switch
-
- //Possibility of a lethal strike
- Formulas.calcLethalHit(activeChar, target, skill);
-
- }//end for
-
- // self Effect :]
- if (skill.hasSelfEffects())
- {
- final L2Effect effect = activeChar.getFirstEffect(skill.getId());
- if (effect != null && effect.isSelfEffect())
- {
- //Replace old effect with new one.
- effect.exit();
- }
- skill.getEffectsSelf(activeChar);
- }
- } //end void
-
- /**
- *
- * @param target
- * @param type
- * @param power
- * @param maxRemoved
- * @return
- */
- private int negateEffect(L2Character target, L2SkillType type, int negateLvl, int maxRemoved)
- {
- return negateEffect(target, type, negateLvl, 0, maxRemoved);
- }
-
- /**
- *
- * @param target
- * @param type
- * @param power
- * @param skillId
- * @param maxRemoved
- * @return
- */
- private int negateEffect(L2Character target, L2SkillType type, int negateLvl, int skillId, int maxRemoved)
- {
- L2Effect[] effects = target.getAllEffects();
- int count = (maxRemoved <= 0) ? -2 : 0;
- for (L2Effect e : effects)
- {
- if (negateLvl == -1) // if power is -1 the effect is always removed without power/lvl check ^^
- {
- if (e.getSkill().getSkillType() == type || (e.getSkill().getEffectType() != null && e.getSkill().getEffectType() == type))
- {
- if (skillId != 0)
- {
- if (skillId == e.getSkill().getId() && count < maxRemoved)
- {
- e.exit();
- if (count > -1)
- count++;
- }
- }
- else if (count < maxRemoved)
- {
- e.exit();
- if (count > -1)
- count++;
- }
- }
- }
- else
- {
- boolean cancel = false;
- if (e.getSkill().getEffectType() != null && e.getSkill().getEffectAbnormalLvl() >= 0)
- {
- if (e.getSkill().getEffectType() == type && e.getSkill().getEffectAbnormalLvl() <= negateLvl)
- cancel = true;
- }
- else if (e.getSkill().getSkillType() == type && e.getSkill().getAbnormalLvl() <= negateLvl)
- cancel = true;
-
- if (cancel)
- {
- if (skillId != 0)
- {
- if (skillId == e.getSkill().getId() && count < maxRemoved)
- {
- e.exit();
- if (count > -1)
- count++;
- }
- }
- else if (count < maxRemoved)
- {
- e.exit();
- if (count > -1)
- count++;
- }
- }
- }
- }
-
- return (maxRemoved <= 0) ? count + 2 : count;
- }
-
- private L2Effect[] SortEffects(L2Effect[] initial)
- {
- //this is just classic insert sort
- //If u can find better sort for max 20-30 units, rewrite this... :)
- int min, index = 0;
- L2Effect pom;
- for (int i = 0; i < initial.length; i++)
- {
- min = initial[i].getSkill().getMagicLevel();
- for (int j = i; j < initial.length; j++)
- {
- if (initial[j].getSkill().getMagicLevel() <= min)
- {
- min = initial[j].getSkill().getMagicLevel();
- index = j;
- }
- }
- pom = initial[i];
- initial[i] = initial[index];
- initial[index] = pom;
- }
-
- return initial;
- }
-
-
- /**
- *
- * @see com.l2jserver.gameserver.handler.ISkillHandler#getSkillIds()
- */
- @Override
- public L2SkillType[] getSkillIds()
- {
- return SKILL_IDS;
- }
- }
|