Address sending bogus spell effect icon data to the client in the Spawn Info packet.

This commit is contained in:
Emagi 2025-06-09 14:05:08 -04:00
parent 77971f36a2
commit e79cffd658
3 changed files with 15 additions and 0 deletions

View File

@ -139,6 +139,11 @@ void Entity::DeleteSpellEffects(bool removeClient)
}
}
GetInfoStruct()->spell_effects[i].spell_id = 0xFFFFFFFF;
GetInfoStruct()->spell_effects[i].icon = 0;
GetInfoStruct()->spell_effects[i].icon_backdrop = 0;
GetInfoStruct()->spell_effects[i].tier = 0;
GetInfoStruct()->spell_effects[i].total_time = 0.0f;
GetInfoStruct()->spell_effects[i].expire_timestamp = 0;
GetInfoStruct()->spell_effects[i].spell = nullptr;
}
}

View File

@ -1072,7 +1072,12 @@ struct InfoStruct{
maintained_effects[i].spell = nullptr;
}
spell_effects[i].icon = 0;
spell_effects[i].spell_id = 0xFFFFFFFF;
spell_effects[i].icon_backdrop = 0;
spell_effects[i].tier = 0;
spell_effects[i].total_time = 0.0f;
spell_effects[i].expire_timestamp = 0;
spell_effects[i].spell = nullptr;
}
}

View File

@ -3286,6 +3286,11 @@ PlayerInfo::PlayerInfo(Player* in_player){
info_struct->maintained_effects[i].spell = nullptr;
}
info_struct->spell_effects[i].spell_id = 0xFFFFFFFF;
info_struct->spell_effects[i].icon = 0;
info_struct->spell_effects[i].icon_backdrop = 0;
info_struct->spell_effects[i].tier = 0;
info_struct->spell_effects[i].total_time = 0.0f;
info_struct->spell_effects[i].expire_timestamp = 0;
info_struct->spell_effects[i].spell = nullptr;
}