Skip to content

Commit

Permalink
Remove GM aura if not GM on log in
Browse files Browse the repository at this point in the history
  • Loading branch information
henhouse authored and killerwife committed Oct 22, 2022
1 parent 228b2dc commit e960dbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/Entities/CharacterHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,6 +830,8 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
if (invisibleAuraInfo && IsSpellAppliesAura(invisibleAuraInfo))
pCurrChar->CastSpell(pCurrChar, invisibleAuraInfo, TRIGGERED_OLD_TRIGGERED);
}
else if (pCurrChar->HasAura(sWorld.getConfig(CONFIG_UINT32_GM_INVISIBLE_AURA)))
pCurrChar->RemoveAurasDueToSpell(sWorld.getConfig(CONFIG_UINT32_GM_INVISIBLE_AURA));

std::string IP_str = GetRemoteAddress();
sLog.outChar("Account: %d (IP: %s) Login Character:[%s] (guid: %u)",
Expand Down

0 comments on commit e960dbf

Please sign in to comment.