[Exploit] Prevent players from summoning horses while feigned.

This commit is contained in:
Trust 2018-07-21 16:17:42 -04:00
parent 96d146f73c
commit c375716c22

View File

@ -1730,7 +1730,12 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
#endif #endif
if(IsClient()) // NPCs can't ride 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);
} }