1
0

Avoid misconfigured or heroic opportunities persisting past zone if they somehow get applied to a player

This commit is contained in:
Emagi 2024-12-28 18:21:20 -05:00
parent 2afc0b8e92
commit c8d199139f

View File

@ -8017,6 +8017,10 @@ void WorldDatabase::LoadCharacterSpellEffects(int32 char_id, Client* client, int
else
continue;
}
else if(!icon) {
LogWrite(LUA__WARNING, 0, "LUA", "WorldDatabase::LoadCharacterSpellEffects: GetSpell(%u, %u), no icon set, this must be a heroic opportunity or incorrectly configured spell!", spell_id, tier);
continue;
}
bool isMaintained = false;
bool isExistingLuaSpell = false;