Skip to content

Commit

Permalink
Fix mechanic rocket punch being handled in wrong skill handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Oct 13, 2023
1 parent b4d1355 commit 01ecd59
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ public class Mechanic1SkillHandler : CitizenSkillHandler
{
public override int ID => Job.Mechanic;

public override async Task HandleAttackMob(ISkillContext context, IFieldUser user, IFieldMob mob)
{
switch (context.Skill?.ID)
{
case Skill.MechanicRocketPunch:
context.SetProc();
context.AddMobTemporaryStat(MobTemporaryStatType.Stun, 1);
break;
}

await base.HandleAttackMob(context, user, mob);
}

public override Task HandleSkillUse(ISkillContext context, IFieldUser user)
{
switch (context.Skill?.ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using Edelstein.Protocol.Gameplay.Game.Combat;
using Edelstein.Protocol.Gameplay.Game.Objects;
using Edelstein.Protocol.Gameplay.Game.Objects.AffectedArea;
using Edelstein.Protocol.Gameplay.Game.Objects.Mob;
using Edelstein.Protocol.Gameplay.Game.Objects.Mob.Stats;
using Edelstein.Protocol.Gameplay.Game.Objects.Summoned;
using Edelstein.Protocol.Gameplay.Game.Objects.User;

Expand All @@ -10,7 +12,20 @@ namespace Edelstein.Common.Gameplay.Game.Combat.Skills.Resistance;
public class Mechanic3SkillHandler : Mechanic2SkillHandler
{
public override int ID => Job.Mechanic3;


public override async Task HandleAttackMob(ISkillContext context, IFieldUser user, IFieldMob mob)
{
switch (context.Skill?.ID)
{
case Skill.MechanicRocketPunch:
context.SetProc();
context.AddMobTemporaryStat(MobTemporaryStatType.Stun, 1);
break;
}

await base.HandleAttackMob(context, user, mob);
}

public override Task HandleSkillUse(ISkillContext context, IFieldUser user)
{
switch (context.Skill?.ID)
Expand Down

0 comments on commit 01ecd59

Please sign in to comment.