[Spells] Update to SPA 296 and 483 item and AA support (#1857)

[Spells] Update to SPA 296 and 483 item and AA support
This commit is contained in:
KayenEQ
2021-12-03 15:39:21 -05:00
committed by GitHub
parent 82000949e3
commit e09f28c62c
2 changed files with 10 additions and 82 deletions
+1 -1
View File
@@ -1475,7 +1475,7 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
}
//Check if buffs has numhits, then resend packet so it displays the hit count.
if (IsClient() && (spells[spell_id].buff_duration > 0 || spells[spell_id].short_buff_box)) {
if (IsClient() && spells[spell_id].hit_number) {
for (int i = 0; i < GetMaxTotalSlots(); i++) {
if (buffs[i].spellid == spell_id && buffs[i].hit_number > 0) {
CastToClient()->SendBuffNumHitPacket(buffs[i], i);