Browse Source

Bug with knowledge books and examining spells/abilities

- Need to use the old unique_id, spell book (knowledge book) was showing 'unknown spell' for some entries, you couldn't examine any abilities either.
image 3 years ago
parent
commit
0ad4e6b698
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/Player.cpp

+ 1 - 1
EQ2/source/WorldServer/Player.cpp

@@ -2792,7 +2792,7 @@ EQ2Packet* Player::GetSpellBookUpdatePacket(int16 version) {
 					packet->setSubstructArrayDataByName("spells", "icon", (spell->GetSpellIcon() * -1) - 1, 0, ptr);
 					packet->setSubstructArrayDataByName("spells", "icon_type", spell->GetSpellIconBackdrop(), 0, ptr);
 					packet->setSubstructArrayDataByName("spells", "icon2", spell->GetSpellIconHeroicOp(), 0, ptr);
-					packet->setSubstructArrayDataByName("spells", "unique_id", GetNameCrc(spell->GetName()), 0, ptr);
+					packet->setSubstructArrayDataByName("spells", "unique_id", (spell_entry->tier + 1) * -1, 0, ptr);
 					packet->setSubstructArrayDataByName("spells", "charges", 255, 0, ptr);
 
 					// Beastlord and Channeler spell support