mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 23:20:25 +00:00
[Spells] Implemented SPA 245 SE_TrapCircumvention (#1885)
* implemented * [Spells] Implemented SPA 245 SE_TrapCircumvention
This commit is contained in:
@@ -5464,8 +5464,11 @@ void Client::Handle_OP_DisarmTraps(const EQApplicationPacket *app)
|
||||
}
|
||||
else
|
||||
{
|
||||
int fail_rate = 25;
|
||||
int trap_circumvention = spellbonuses.TrapCircumvention + itembonuses.TrapCircumvention + aabonuses.TrapCircumvention;
|
||||
fail_rate -= fail_rate * trap_circumvention / 100;
|
||||
MessageString(Chat::Skills, FAIL_DISARM_DETECTED_TRAP);
|
||||
if (zone->random.Int(0, 99) < 25) {
|
||||
if (zone->random.Int(0, 99) < fail_rate) {
|
||||
trap->Trigger(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user