mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-23 20:31:28 +00:00
[Bug Fix] Numhits now display instantly on cast. (#1826)
This commit is contained in:
parent
9d59b3def4
commit
ba427c64ba
@ -1458,6 +1458,16 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
|
|||||||
if(DeleteChargeFromSlot >= 0)
|
if(DeleteChargeFromSlot >= 0)
|
||||||
CastToClient()->DeleteItemInInventory(DeleteChargeFromSlot, 1, true);
|
CastToClient()->DeleteItemInInventory(DeleteChargeFromSlot, 1, true);
|
||||||
|
|
||||||
|
//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)) {
|
||||||
|
for (int i = 0; i < GetMaxTotalSlots(); i++) {
|
||||||
|
if (buffs[i].spellid == spell_id && buffs[i].hit_number > 0) {
|
||||||
|
CastToClient()->SendBuffNumHitPacket(buffs[i], i);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// at this point the spell has successfully been cast
|
// at this point the spell has successfully been cast
|
||||||
//
|
//
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user