fix: Fixes death strike never ending (#1386)

This commit is contained in:
Kamron Batman 2023-04-05 08:58:28 -07:00 committed by GitHub
parent 3c86af4ff3
commit 41ccc51caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,14 @@ namespace Server.Spells.Ninjitsu
}
}
public static void RemoveEffect(Mobile m)
{
if (_table.Remove(m, out var timer))
{
timer.Stop();
}
}
private class DeathStrikeTimer : Timer
{
private Mobile _attacker;
@ -163,7 +171,7 @@ namespace Server.Spells.Ninjitsu
);
}
Stop();
RemoveEffect(_target);
}
}
}