[DiscordArchive] How can I disable flights on mounts?
[DiscordArchive] How can I disable flights on mounts?
Archived author: Legioner • Posted: 2022-12-18T01:24:52.536000+00:00
Original source
How can I disable flights on mounts?
Archived author: Revision • Posted: 2022-12-18T01:28:39.419000+00:00
Original source
I guess by changing this function a little https://github.com/azerothcore/azerothco....cpp#L3913
Archived author: Revision • Posted: 2022-12-18T01:29:11.842000+00:00
Original source
Wait, no
Archived author: Revision • Posted: 2022-12-18T01:29:24.832000+00:00
Original source
I'm sorry, I went a little confused there.
Archived author: Revision • Posted: 2022-12-18T01:34:07.011000+00:00
Original source
I don't know if it's even possible to allow using mounts that are flying mounts without being able to fly them but just maybe something in this function could let you "disable" flying mounts in general https://github.com/azerothcore/azerothco....cpp#L1505
Archived author: Legioner • Posted: 2022-12-18T01:40:25.955000+00:00
Original source
Thanks. I will drip. It would just be enough that they could not fly and could only be used as ground-based.
![[Image: image.png?ex=690bfd31&is=690aabb1&hm=58a...3974a9220&]](https://cdn.discordapp.com/attachments/284406375495368704/1053849890565931069/image.png?ex=690bfd31&is=690aabb1&hm=58a0a469500d7a207e3585ac5eb991f75ac3b2bbf490ec931f80ef53974a9220&)
Archived author: Revision • Posted: 2022-12-18T01:43:13.571000+00:00
Original source
Maybe this function could be replaced by
```
if (HasAttribute(SPELL_ATTR4_ONLY_FLYING_AREAS) && (area_id || zone_id))
{
return SPELL_FAILED_INCORRECT_AREA;
}
```
Worth a try at least.
![[Image: image.png?ex=690bfd31&is=690aabb1&hm=58a...3974a9220&]](https://cdn.discordapp.com/attachments/284406375495368704/1053849890565931069/image.png?ex=690bfd31&is=690aabb1&hm=58a0a469500d7a207e3585ac5eb991f75ac3b2bbf490ec931f80ef53974a9220&)