-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #540 from nitoygo/dev/summon-party-skill-handler
- Loading branch information
Showing
10 changed files
with
620 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// <copyright file="ForceSkillAction.cs" company="MUnique"> | ||
// Licensed under the MIT License. See LICENSE file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace MUnique.OpenMU.GameLogic.PlayerActions.Skills; | ||
|
||
using System.Runtime.InteropServices; | ||
using MUnique.OpenMU.PlugIns; | ||
|
||
/// <summary> | ||
/// The Force skill action. | ||
/// </summary> | ||
[PlugIn(nameof(ForceSkillAction), "Handles the force skill of the dark lord.")] | ||
[Guid("552e4e3d-8215-44f4-bee3-b006da049eb2")] | ||
public class ForceSkillAction : TargetedSkillDefaultPlugin | ||
{ | ||
private const ushort ForceWaveSkillId = 66; | ||
|
||
/// <inheritdoc/> | ||
public override short Key => 60; | ||
|
||
/// <inheritdoc/> | ||
public override async ValueTask PerformSkillAsync(Player player, IAttackable target, ushort skillId) | ||
{ | ||
// Special handling of force wave skill. The client might send skill id 60, | ||
// even though it's performing force wave. | ||
await base.PerformSkillAsync(player, target, ForceWaveSkillId).ConfigureAwait(false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// <copyright file="NovaSkillStopPlugin.cs" company="MUnique"> | ||
// Licensed under the MIT License. See LICENSE file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace MUnique.OpenMU.GameLogic.PlayerActions.Skills; | ||
|
||
using System.Runtime.InteropServices; | ||
using MUnique.OpenMU.PlugIns; | ||
|
||
/// <summary> | ||
/// The stop nova skill action. | ||
/// </summary> | ||
[PlugIn(nameof(NovaSkillStopPlugin), "Handles the stopping of nova skill of the wizard class.")] | ||
[Guid("3cb98892-b3ce-42de-8956-5ed5625c6285")] | ||
public class NovaSkillStopPlugin : TargetedSkillPluginBase | ||
{ | ||
/// <inheritdoc/> | ||
public override short Key => 40; | ||
|
||
/// <inheritdoc /> | ||
public override async ValueTask PerformSkillAsync(Player player, IAttackable target, ushort skillId) | ||
{ | ||
player.SkillCancelTokenSource?.CancelWithExtraTarget(target.Id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.