From 483b4724e5f30e667bfeb4bec9007500a276add1 Mon Sep 17 00:00:00 2001 From: Trust Date: Sun, 22 Jul 2018 16:38:45 -0400 Subject: [PATCH 1/2] [Exploit] Prevent low level mez testing without aggro. Using low level mez to test if a mob is mezzable and NOT get aggro has been squashed. When you cast you will get 1 point of aggro on a Cannot mez with this spell. --- zone/spells.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 8f8cfba33..a0b149a8d 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -4247,6 +4247,7 @@ bool Mob::IsImmuneToSpell(uint16 spell_id, Mob *caster) { Log(Logs::Detail, Logs::Spells, "Our level (%d) is higher than the limit of this Mez spell (%d)", GetLevel(), spells[spell_id].max[effect_index]); caster->Message_StringID(MT_Shout, CANNOT_MEZ_WITH_SPELL); + AddToHateList(caster, 1,0,true,false,false,spell_id); return true; } } From 1bba629514d6398fcd025f78ac5edbd2764dbedc Mon Sep 17 00:00:00 2001 From: Trust Date: Sun, 22 Jul 2018 18:35:50 -0400 Subject: [PATCH 2/2] Prevent Low Level Charm testing without Aggro --- zone/spells.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index a0b149a8d..60591b7b1 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -4339,6 +4339,7 @@ bool Mob::IsImmuneToSpell(uint16 spell_id, Mob *caster) { Log(Logs::Detail, Logs::Spells, "Our level (%d) is higher than the limit of this Charm spell (%d)", GetLevel(), spells[spell_id].max[effect_index]); caster->Message_StringID(MT_Shout, CANNOT_CHARM_YET); + AddToHateList(caster, 1,0,true,false,false,spell_id); return true; } }