Save Often
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
|
||||
#include "AbilitySystem/AuraProjectileSpell.h"
|
||||
|
||||
#include "AbilitySystemBlueprintLibrary.h"
|
||||
#include "AbilitySystemComponent.h"
|
||||
#include "AuraGameplayTags.h"
|
||||
@@ -45,7 +44,10 @@ void UAuraProjectileSpell::SpawnProjectile(const FVector ProjectileTargetLocatio
|
||||
const FGameplayEffectSpecHandle SpecHandle = SourceASC->MakeOutgoingSpec(DamageEffectClass, GetAbilityLevel(), SourceASC->MakeEffectContext());
|
||||
|
||||
const FAuraGameplayTags GameplayTags = FAuraGameplayTags::Get();
|
||||
UAbilitySystemBlueprintLibrary::AssignTagSetByCallerMagnitude(SpecHandle, GameplayTags.Damage, Damage);
|
||||
const float ScaledDamage = Damage.GetValueAtLevel(GetAbilityLevel());
|
||||
//const float ScaledDamage = Damage.GetValueAtLevel(1);
|
||||
|
||||
UAbilitySystemBlueprintLibrary::AssignTagSetByCallerMagnitude(SpecHandle, GameplayTags.Damage, ScaledDamage);
|
||||
|
||||
Projectile->DamageEffectSpecHandle = SpecHandle;
|
||||
Projectile->FinishSpawning(SpawnTransform);
|
||||
|
||||
Reference in New Issue
Block a user