mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 12:21:34 +00:00
[Exploit] Prevent players from summoning horses while feigned.
This commit is contained in:
parent
96d146f73c
commit
c375716c22
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user