Skip to content

Commit

Permalink
Fix GC emotes showing up inappropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
KazWolfe committed Jan 12, 2023
1 parent 2cbf6ab commit 9ff5158
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions FFXIVPlugin/Game/GameStateCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ internal static bool IsEmoteUnlocked(Emote? emote) {
// to blow all this up.

if (emote == null || emote.Order == 0) return false;

// HACK - We need to handle GC emotes as a special case
switch (emote.RowId) {
case 55 when PlayerState.Instance()->GrandCompany != 1: // Maelstrom
case 56 when PlayerState.Instance()->GrandCompany != 2: // Twin Adders
case 57 when PlayerState.Instance()->GrandCompany != 3: // Immortal Flames
return false;
}

return emote.UnlockLink == 0 || UIState.Instance()->IsUnlockLinkUnlockedOrQuestCompleted(emote.UnlockLink);
}
Expand Down

0 comments on commit 9ff5158

Please sign in to comment.