mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Update client_packet.cpp
This commit is contained in:
parent
06fbd7103e
commit
0d6d78ebda
@ -2851,16 +2851,15 @@ void Client::Handle_OP_ApplyPoison(const EQApplicationPacket *app)
|
|||||||
// Poisons that don't proc until a level higher than the
|
// Poisons that don't proc until a level higher than the
|
||||||
// rogue simply won't apply at all, no skill check done.
|
// 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;
|
ApplyPoisonSuccessResult = 1;
|
||||||
AddProcToWeapon(poison->Proc.Effect, false,
|
AddProcToWeapon(poison->Proc.Effect, false, (GetDEX() / 100) + 103);
|
||||||
(GetDEX() / 100) + 103);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
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.
|
// Live always deletes the item, success or failure. Even if too high.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user