Skip to content

Commit

Permalink
Fixed Phase Spider
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Nov 2, 2024
1 parent 4ae8ad8 commit 841cce7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Scripts/Nelderim/Mobiles/PhaseSpider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void DrainLife()
continue;

if (m is BaseCreature creature &&
(creature.Controlled || creature.Summoned || creature.Team != this.Team))
(creature.Controlled || creature.Summoned || creature.Team != Team))
list.Add(m);
else if (m.Player)
list.Add(m);
Expand Down Expand Up @@ -130,13 +130,11 @@ private static bool UnderEffect(Mobile m)

private static void StopEffect(Mobile m)
{
var timer = Table[m];

if (timer == null) return;

timer.Stop();
Table.Remove(m);

if (Table.TryGetValue(m, out var timer))
{
timer.Stop();
Table.Remove(m);
}
if (TimerState.ContainsKey(m))
{
TimerState.Remove(m);
Expand Down

0 comments on commit 841cce7

Please sign in to comment.