mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
[Feature] Add Expansion and Content Flag support to Blocked Spells (#3638)
* [Feature] Add Expansion and Content Flag support to Blocked Spells # Notes - Allows operators to filter blocked spells behind expansions or content flags. - Requested in https://github.com/EQEmu/Server/issues/3582 * [Tradeskills] Add learned_by_item_id field (#3637) * [Feature] Add Expansion and Content Flag support to Blocked Spells - Allows operators to filter blocked spells behind expansions or content flags. - Requested in https://github.com/EQEmu/Server/issues/3582 --------- Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
+11
-2
@@ -2197,12 +2197,21 @@ void Zone::LoadZoneBlockedSpells()
|
||||
if (zone_total_blocked_spells > 0) {
|
||||
blocked_spells = new ZoneSpellsBlocked[zone_total_blocked_spells];
|
||||
if (!content_db.LoadBlockedSpells(zone_total_blocked_spells, blocked_spells, GetZoneID())) {
|
||||
LogError(" Failed to load blocked spells");
|
||||
LogError(
|
||||
"Failed to load blocked spells for {} ({}).",
|
||||
zone_store.GetZoneName(GetZoneID(), true),
|
||||
GetZoneID()
|
||||
);
|
||||
ClearBlockedSpells();
|
||||
}
|
||||
}
|
||||
|
||||
LogInfo("Loaded [{}] blocked spells(s)", Strings::Commify(zone_total_blocked_spells));
|
||||
LogInfo(
|
||||
"Loaded [{}] blocked spells(s) for {} ({}).",
|
||||
Strings::Commify(zone_total_blocked_spells),
|
||||
zone_store.GetZoneName(GetZoneID(), true),
|
||||
GetZoneID()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user