Skip to content

Commit

Permalink
Add physical damage handling for Life Magic Projectile spells
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimShi committed Sep 27, 2024
1 parent 893bbba commit 865f176
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/ACE.Server/WorldObjects/WorldObject_Magic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,14 @@ private void HandleCastSpell_Projectile(Spell spell, WorldObject target, WorldOb
//if (player != null && player.Fellowship != null)
//player.Fellowship.OnVitalUpdate(player);
}
else if(spell.DamageType != DamageType.Undef)
{
// Handle rare case where some of these "Life Magic" spells do physical damage e.g. Hunter's Lash 2970 and Thorn Valley 6159
damageType = spell.DamageType;
}
else
{
log.Warn($"Unknown DamageType for LifeProjectile {spell.Name} - {spell.Id}");
log.Warn($"Unknown DamageType ({spell.DamageType}) for LifeProjectile {spell.Name} - {spell.Id}");
return;
}
}
Expand Down

0 comments on commit 865f176

Please sign in to comment.