|
|
@@ -332,9 +332,11 @@ public class AttributeStatus : MonoBehaviour
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (attackMethod.attackInfo.shotDown.haveLandingDamage)
|
|
|
+ AttackInfo.ShotDown shotDown = attackMethod.attackInfo.shotDown;
|
|
|
+ if (shotDown.haveLandingDamage)
|
|
|
{
|
|
|
- landingDamage = (int)(Mathf.Abs(transform.position.y - startFlyPos.y) * attackMethod.attackInfo.shotDown.landingDamageRate);
|
|
|
+ landingDamage = (int)(Mathf.Abs(transform.position.y - startFlyPos.y) * shotDown.landingDamageRate);
|
|
|
+ landingDamage = Mathf.Clamp(landingDamage, shotDown.minLandingDamage, landingDamage);
|
|
|
if (landingDamage > 0)
|
|
|
{
|
|
|
character.BeHit(attackMethod, landingDamageFrom, landingDamage);
|