mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 01:18:21 +00:00
Merge pull request #751 from fryguy503/horse-feign-fix
[Exploit] Prevent players from summoning horses while feigned.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user