@@ -108,7 +108,7 @@ public class AttackTrigger : MonoBehaviour
{
c = 0;
}
- curDamage *= 100 / (100 + c);
+ curDamage = (int)(curDamage * (100f / (100 + c)) + 0.5f);
trigedObjs[i].BeHit(curDamage, force, changeHurt, repelValue);
if (trigedObjs[i].owner.debugAttackFrom)
@@ -199,7 +199,7 @@ public class Bullet : MonoBehaviour
switch (bulletType)