修复伤害技能

This commit is contained in:
997146918 2025-09-04 15:16:35 +08:00
parent 129ed02380
commit bacedca5dd
2 changed files with 2 additions and 7 deletions

View File

@ -28,7 +28,7 @@ enum class ESkillEffectType: uint8
UENUM(BlueprintType) UENUM(BlueprintType)
enum class EEffectTargetType: uint8 enum class EEffectTargetType: uint8
{ {
Target UMETA(DisplayName = "对方本体"), Target UMETA(DisplayName = "敌人"),
Self UMETA(DisplayName = "自身"), Self UMETA(DisplayName = "自身"),
TargetSkill UMETA(DisplayName = "对方的装备"), TargetSkill UMETA(DisplayName = "对方的装备"),
SelfSkill UMETA(DisplayName = "自身的装备"), SelfSkill UMETA(DisplayName = "自身的装备"),

View File

@ -19,12 +19,7 @@ void USkillEffect_Damage::Execute(const FSkillContext& context)
} }
else else
{ {
//对方消耗耐力 Cast<APawnWithSkill>(target)->ApplyyEndurance(-effectData.EffectValue);
if (target != OwnerSkill->GetOwner())
{
Cast<APawnWithSkill>(target)->ApplyyEndurance(-effectData.EffectValue);
}
} }
} }
} }