deez

Ancestrar.fixedPicole

Jul 20th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.95 KB | None | 0 0
  1. private void applyEffect_149(final Fight fight, final ArrayList<Fighter> cibles)
  2. {
  3.         int id = -1;
  4.         try
  5.         {
  6.                 id = Integer.parseInt(args.split(";")[2]);
  7.         }catch(final Exception e){};
  8.         for(final Fighter target : cibles)
  9.         {
  10.                 if(spell == 686)
  11.                 {
  12.                         if(target.isPlayer() && target.getPersonnage().getSexe() == 1 || target.isMob() && target.getMob().getTemplate().getID() == 547)
  13.                         {
  14.                                 id = 8011;
  15.                         }
  16.                 }
  17.                 if(id == -1)id = target.getDefaultGfx();
  18.                 target.addBuff(effectID, id, turns, 1, true, spell, args, caster);
  19.                 final int defaut = target.getDefaultGfx();
  20.                 SocketManager.GAME_SEND_GA_PACKET_TO_FIGHT(fight, 7, effectID, caster.getGUID()+"", target.getGUID()+","+defaut+","+id+","+turns);
  21.         }      
  22. }
Advertisement
Add Comment
Please, Sign In to add comment