[Bug Fix] Fix for interrupting item casts to no longer lock the client if cast time of item greater than 0 (#2921)

This commit is contained in:
Natedog2012 2023-02-12 22:49:59 -06:00 committed by GitHub
parent c64591b8f7
commit 9836b5cf67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4335,6 +4335,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
}
else {
InterruptSpell(castspell->spell_id);
SendSpellBarEnable(castspell->spell_id);
return;
}
}
@ -4373,6 +4374,7 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
}
else {
InterruptSpell(castspell->spell_id);
SendSpellBarEnable(castspell->spell_id);
return;
}
}
@ -9205,6 +9207,10 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
else {
CastSpell(item->Click.Effect, target_id, CastingSlot::Item, item->CastTime, 0, 0, slot_id);
}
} else {
InterruptSpell(item->Click.Effect);
SendSpellBarEnable(item->Click.Effect);
return;
}
}
else
@ -9273,6 +9279,10 @@ void Client::Handle_OP_ItemVerifyRequest(const EQApplicationPacket *app)
else {
CastSpell(augitem->Click.Effect, target_id, CastingSlot::Item, augitem->CastTime, 0, 0, slot_id);
}
} else {
InterruptSpell(item->Click.Effect);
SendSpellBarEnable(item->Click.Effect);
return;
}
}
else