Stop spells being put on hotbar that are not supposed to be visible like archetypes
This commit is contained in:
parent
2b36a05a1c
commit
08204186c8
@ -4497,6 +4497,10 @@ void Client::SimpleMessage(int8 color, const char* message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Client::SendSpellUpdate(Spell* spell, bool add_silently, bool add_to_hotbar) {
|
void Client::SendSpellUpdate(Spell* spell, bool add_silently, bool add_to_hotbar) {
|
||||||
|
// disable potentially putting a spell on the hotbar (like archetypes) that are not to be shown to player or book
|
||||||
|
if(spell && spell->GetSpellData() && spell->GetSpellData()->type == SPELL_BOOK_TYPE_NOT_SHOWN)
|
||||||
|
add_to_hotbar = false;
|
||||||
|
|
||||||
PacketStruct* packet = configReader.getStruct("WS_SpellGainedMsg", GetVersion());
|
PacketStruct* packet = configReader.getStruct("WS_SpellGainedMsg", GetVersion());
|
||||||
if (packet) {
|
if (packet) {
|
||||||
int8 xxx = spell->GetSpellData()->is_aa;
|
int8 xxx = spell->GetSpellData()->is_aa;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user