fix: Fixes death strike never ending (#1386)
This commit is contained in:
parent
3c86af4ff3
commit
41ccc51caa
1 changed files with 9 additions and 1 deletions
|
|
@ -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 class DeathStrikeTimer : Timer
|
||||||
{
|
{
|
||||||
private Mobile _attacker;
|
private Mobile _attacker;
|
||||||
|
|
@ -163,7 +171,7 @@ namespace Server.Spells.Ninjitsu
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Stop();
|
RemoveEffect(_target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue