Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void applyEffect_149(final Fight fight, final ArrayList<Fighter> cibles)
- {
- int id = -1;
- try
- {
- id = Integer.parseInt(args.split(";")[2]);
- }catch(final Exception e){};
- for(final Fighter target : cibles)
- {
- if(spell == 686)
- {
- if(target.isPlayer() && target.getPersonnage().getSexe() == 1 || target.isMob() && target.getMob().getTemplate().getID() == 547)
- {
- id = 8011;
- }
- }
- if(id == -1)id = target.getDefaultGfx();
- target.addBuff(effectID, id, turns, 1, true, spell, args, caster);
- final int defaut = target.getDefaultGfx();
- SocketManager.GAME_SEND_GA_PACKET_TO_FIGHT(fight, 7, effectID, caster.getGUID()+"", target.getGUID()+","+defaut+","+id+","+turns);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment