mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-03 02:13:51 +00:00
[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:
parent
c64591b8f7
commit
9836b5cf67
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user