mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
fix(Core/Item): Meta gems sometimes ignore added sockets (#3643)
This commit is contained in:
@@ -962,6 +962,13 @@ bool Item::GemsFitSockets() const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Item::HasSocket() const
|
||||
{
|
||||
// There can only be one socket added, and it's always in slot `PRISMATIC_ENCHANTMENT_SLOT`.
|
||||
// Built-in sockets Socket from upgrade
|
||||
return this->GetTemplate()->Socket[0].Color || this->GetEnchantmentId(EnchantmentSlot(PRISMATIC_ENCHANTMENT_SLOT));
|
||||
}
|
||||
|
||||
uint8 Item::GetGemCountWithID(uint32 GemID) const
|
||||
{
|
||||
uint8 count = 0;
|
||||
|
||||
Reference in New Issue
Block a user