修复伤害技能
This commit is contained in:
parent
129ed02380
commit
bacedca5dd
@ -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 = "自身的装备"),
|
||||||
|
|||||||
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user