From c375716c22c454eb06e7d8b1ffa7a89d426992d7 Mon Sep 17 00:00:00 2001 From: Trust Date: Sat, 21 Jul 2018 16:17:42 -0400 Subject: [PATCH] [Exploit] Prevent players from summoning horses while feigned. --- zone/spell_effects.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zone/spell_effects.cpp b/zone/spell_effects.cpp index ee71a627b..bddaf6b5e 100644 --- a/zone/spell_effects.cpp +++ b/zone/spell_effects.cpp @@ -1730,7 +1730,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove #endif if(IsClient()) // NPCs can't ride { - CastToClient()->SummonHorse(spell_id); + Client *client = CastToClient(); + + // Prevent Feigned players from summoning horses and riding away to freedom. + client->SetFeigned(false); + client->Stand(); + client->SummonHorse(spell_id); }