Update client_packet.cpp

This commit is contained in:
Paul Coene 2019-08-05 09:24:22 -04:00 committed by GitHub
parent acef4c0264
commit 06fbd7103e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2851,12 +2851,17 @@ void Client::Handle_OP_ApplyPoison(const EQApplicationPacket *app)
// Poisons that don't proc until a level higher than the
// rogue simply won't apply at all, no skill check done.
if (ChanceRoll < (.9 + GetLevel()/1000)) {
uint16 applyskill=GetSkill(EQEmu::skills::SkillApplyPoison);
if (ChanceRoll < (.75 + applyskill/1000)) {
ApplyPoisonSuccessResult = 1;
AddProcToWeapon(poison->Proc.Effect, false,
(GetDEX() / 100) + 103);
}
}
else {
Message(13, "A piercing weapon must be wielded to apply poison.");
}
// Live always deletes the item, success or failure. Even if too high.
DeleteItemInInventory(ApplyPoisonData->inventorySlot, 1, true);