Skip to content

Commit

Permalink
Fixed poison target bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Suprcode committed Jun 4, 2022
1 parent 8035f41 commit 9cefac3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Server/MirObjects/Monsters/AvengingWarrior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected override void CompleteRangeAttack(IList<object> data)

if (target.Attacked(this, damage, defence) <= 0) return;

PoisonTarget(Target, 5, 8, PoisonType.Red);
PoisonTarget(target, 5, 8, PoisonType.Red);
}

protected override void ProcessTarget()
Expand Down
2 changes: 1 addition & 1 deletion Server/MirObjects/Monsters/CatShaman.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected override void CompleteRangeAttack(IList<object> data)

if (poison && finalDamage > 0)
{
PoisonTarget(Target, 5, 5, PoisonType.Red, 1000);
PoisonTarget(target, 5, 5, PoisonType.Red, 1000);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Server/MirObjects/Monsters/IceGuard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ protected override void CompleteRangeAttack(IList<object> data)

if (poison)
{
PoisonTarget(Target, 5, 5, PoisonType.Slow, 1000);
PoisonTarget(Target, 10, 3, PoisonType.Frozen, 1000);
PoisonTarget(target, 5, 5, PoisonType.Slow, 1000);
PoisonTarget(target, 10, 3, PoisonType.Frozen, 1000);
}
}

Expand Down
4 changes: 2 additions & 2 deletions Server/MirObjects/Monsters/KingHydrax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ protected override void CompleteRangeAttack(IList<object> data)

if (poison)
{
PoisonTarget(Target, 2, 10, PoisonType.Green, 1000);
PoisonTarget(target, 2, 10, PoisonType.Green, 1000);
}
else
{
PoisonTarget(Target, 3, 10, PoisonType.Paralysis, 1000);
PoisonTarget(target, 3, 10, PoisonType.Paralysis, 1000);
}
}

Expand Down

0 comments on commit 9cefac3

Please sign in to comment.