fix: Bufficon timer is not cancelled when refreshed with another one. (#2080)

This commit is contained in:
mark1145 2025-01-21 04:18:52 +11:00 • committed by GitHub
parent b4b7182ce6
commit f5e944335b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 21 deletions

View file

@ -127,8 +127,13 @@ namespace Server
public static void RemoveBuff(Mobile m, BuffInfo b)
{
if (b == null)
{
return;
}
b._timerToken.Cancel();
(m as PlayerMobile)?.RemoveBuff(b);
(m as PlayerMobile)?.RemoveBuff(b.ID);
}
public static void RemoveBuff(Mobile m, BuffIcon b)