Merge pull request #825 from eduardosmaniotto/feature/configurable-npc-buffs
feature: configurable npc buffs (cherry picked from commit 6a061fcad756e644dadf3721e84e3cce2a25bceb)
This commit is contained in:
@@ -55,7 +55,7 @@ public class ShowSkillAnimationPlugIn : IShowSkillAnimationPlugIn
|
||||
}
|
||||
|
||||
var playerId = attacker.GetId(this._player);
|
||||
var targetId = target.GetId(this._player);
|
||||
var targetId = target is { } t ? (effectApplied ? (ushort)(t.GetId(this._player) | 0x8000) : t.GetId(this._player)) : (ushort)0;
|
||||
var skillId = NumberConversionExtensions.ToUnsigned(skillNumber);
|
||||
await this._player.Connection.SendSkillAnimationAsync(skillId, playerId, targetId).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user