Fix for numhits counter not working where buffslot was 0 in some situations.

This commit is contained in:
KayenEQ
2014-11-23 22:06:15 -05:00
parent 5c0fbac7b0
commit 3ca282abfa
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -5586,8 +5586,8 @@ void Mob::CheckNumHitsRemaining(uint8 type, uint32 buff_slot, uint16 spell_id)
}
}
}
} else if (type == 7) {
if (buff_slot > 0) {
} else if (type == NUMHIT_MatchingSpells) {
if (buff_slot >= 0) {
if (--buffs[buff_slot].numhits == 0) {
CastOnNumHitFade(buffs[buff_slot].spellid);
if (!TryFadeEffect(buff_slot))