Пример #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));
     }
 }
Пример #2
0
 public static bool GC(BuffBase buff)
 {
     return(!buff.isActive);
 }