Esempio n. 1
0
 public override void ModifyHitItem(Player attacker, EntModItem item, NPC target, ref int damage, ref bool crit, ref float[] dr)
 {
     item.addElement(type, amount);
     if (crit)
     {
         AddBuff(BuffBase.GetFromIndex(target, type, damage / 3, attacker));
     }
 }
Esempio n. 2
0
 public static bool GC(BuffBase buff)
 {
     return(!buff.isActive);
 }