wave behavior and fixed explosion

This commit is contained in:
2026-05-16 19:48:48 +02:00
parent b3ae3e37ea
commit 1898d91a28
27 changed files with 355 additions and 21 deletions

View File

@@ -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))
{