Update client_packet.cpp

This commit is contained in:
Chris Miles 2019-09-01 15:37:21 -05:00 committed by GitHub
parent 06fbd7103e
commit 0d6d78ebda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2851,16 +2851,15 @@ 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.
uint16 applyskill=GetSkill(EQEmu::skills::SkillApplyPoison);
uint16 poison_skill = GetSkill(EQEmu::skills::SkillApplyPoison);
if (ChanceRoll < (.75 + applyskill/1000)) {
if (ChanceRoll < (.75 + poison_skill / 1000)) {
ApplyPoisonSuccessResult = 1;
AddProcToWeapon(poison->Proc.Effect, false,
(GetDEX() / 100) + 103);
AddProcToWeapon(poison->Proc.Effect, false, (GetDEX() / 100) + 103);
}
}
else {
Message(13, "A piercing weapon must be wielded to apply poison.");
Message(Chat::Red, "A piercing weapon must be wielded to apply poison.");
}
// Live always deletes the item, success or failure. Even if too high.