fix: Bufficon timer is not cancelled when refreshed with another one. (#2080)
This commit is contained in:
parent
b4b7182ce6
commit
f5e944335b
2 changed files with 12 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue