Merge pull request #751 from fryguy503/horse-feign-fix

[Exploit] Prevent players from summoning horses while feigned.
This commit is contained in:
Michael Cook (mackal) 2018-07-21 17:06:29 -04:00 committed by GitHub
commit 02a3f971dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}