Skip to content

Commit

Permalink
Fix level up emote not displaying while attacking/casting
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Sep 14, 2022
1 parent 6a4a127 commit 2881351
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions EndlessClient/Rendering/Character/CharacterAnimationActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,16 @@ public void NotifyMapEffect(MapEffect effect, byte strength = 0)

public void NotifyEmote(short playerId, Emote emote)
{
switch (emote)
{
case EOLib.Domain.Character.Emote.Trade:
_sfxPlayer.PlaySfx(SoundEffectID.TradeAccepted);
break;
case EOLib.Domain.Character.Emote.LevelUp:
_sfxPlayer.PlaySfx(SoundEffectID.LevelUp);
break;
}

try
{
Animator.Emote(playerId, emote);
Expand Down
4 changes: 2 additions & 2 deletions EndlessClient/Rendering/Character/CharacterAnimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ public void StartOtherCharacterSpellCast(int characterID)

public bool Emote(int characterID, Emote whichEmote)
{
if (_otherPlayerStartWalkingTimes.ContainsKey(characterID) ||
if (((_otherPlayerStartWalkingTimes.ContainsKey(characterID) ||
_otherPlayerStartAttackingTimes.ContainsKey(characterID) ||
_otherPlayerStartSpellCastTimes.ContainsKey(characterID) ||
_otherPlayerStartSpellCastTimes.ContainsKey(characterID)) && whichEmote != EOLib.Domain.Character.Emote.LevelUp) ||
_startEmoteTimes.ContainsKey(characterID))
return false;

Expand Down

0 comments on commit 2881351

Please sign in to comment.