Skip to content

Commit

Permalink
Tweak ApplyDamage
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirednuke committed Jul 21, 2024
1 parent d718792 commit 536fad4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ private void OnTick()
_entitiesToRemove.Clear();
_entitiesToAdd.Clear();

var spell = new FireBallSpell();

foreach (var entity in _entities)
{
if (entity.Key is null || entity.Value is null)
Expand Down Expand Up @@ -183,7 +185,8 @@ private void OnTick()

if (entity != null && entity.IsAlive)
{
entity.ApplyDamage(null, _baseDamage);
// assuming applyspell damage accounts fore resistances and immunities
entity.ApplySpellDamage(null,spell,damage,true);
if (entity is PlayerEntity)
entity.SendMessage(Color.Yellow, damageString); /* You are standing in the Magma and take damage. */
}
Expand Down

0 comments on commit 536fad4

Please sign in to comment.