wave behavior and fixed explosion
This commit is contained in:
@@ -30,6 +30,7 @@ public class DamageExecution : CustomExecution
|
||||
|
||||
public DamageExecution(DamageType damageType, ForgeTagContainer? damageDealerEventTags, ForgeTagContainer? damageReceiverEventTags)
|
||||
{
|
||||
|
||||
// Capture target mana and magic resistance
|
||||
TargetHealth = new AttributeCaptureDefinition(
|
||||
"CharacterAttributeSet.Health",
|
||||
@@ -60,6 +61,8 @@ public class DamageExecution : CustomExecution
|
||||
target,
|
||||
effectEvaluatedData);
|
||||
|
||||
GD.Print(targetIncomingDamage);
|
||||
|
||||
if (targetIncomingDamage <= 0)
|
||||
{
|
||||
return [.. results];
|
||||
@@ -70,6 +73,7 @@ public class DamageExecution : CustomExecution
|
||||
targetIncomingDamage *= hitEffectData.Magnitude;
|
||||
}
|
||||
|
||||
|
||||
// Apply health reduction to target if attribute exists
|
||||
if (TargetHealth.TryGetAttribute(target, out EntityAttribute? targetHealthAttribute))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user