Advertisement
elasticpwnz

p_resist_abnormal_by_category

Dec 16th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1.     private static double p_resist_abnormal_by_category(Creature cr, String slot)
  2.     {
  3.         double val = 0;
  4.         for(Effect p_ef : cr.getEffectList().getEffectsByType(EffectType.p_resist_abnormal_by_category))
  5.         {
  6.             if (!p_ef.getSlotType().equalsIgnoreCase("not_used") && p_ef.getSlotType().equalsIgnoreCase(slot))
  7.                 val += p_ef.getResistValue();
  8.         }
  9.        
  10.         return
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement