[DiscordArchive] All mount spells do have the correct race flags ?
[DiscordArchive] All mount spells do have the correct race flags ?
Archived author: Ruderalis • Posted: 2022-05-02T19:43:56.873000+00:00
Original source
All mount spells do have the correct race flags ?
Archived author: Revision • Posted: 2022-05-02T19:44:09.901000+00:00
Original source
The attributes of spells can determine if it's a class-specific, race-specific or faction-specific spell so there's no need to even add that to a database
Archived author: Revision • Posted: 2022-05-02T19:44:24.539000+00:00
Original source
like this
`if (((spell->AttributesEx7 & SPELL_ATTR7_ALLIANCE_SPECIFIC_SPELL) && player->GetTeamId() != TEAM_ALLIANCE)`
Archived author: Honey • Posted: 2022-05-02T19:44:45.441000+00:00
Original source
Ewww, .cpp
Archived author: Revision • Posted: 2022-05-02T19:45:02.282000+00:00
Original source
I made a very crude account bound mount module, I will probably rewrite it to use the account rather than character since that's apparently requested.
Archived author: Ruderalis • Posted: 2022-05-02T19:45:42.801000+00:00
Original source
I do not trust the spell attributes to be correct on all the specific mounts, but if it's truly reliable it's way more pertinent, yes (:
Archived author: Revision • Posted: 2022-05-02T19:46:04.581000+00:00
Original source
I have tested this on various mounts. Class specific, race specific and faction specific - never any issues
Archived author: Revision • Posted: 2022-05-02T19:46:39.893000+00:00
Original source
My rule is, there's no point doing extra work if less code can do it. But that's your choice. I'm going my route.
Archived author: Ruderalis • Posted: 2022-05-02T19:47:32.341000+00:00
Original source
I know why I still need my template table ! Inside it I link any mount (or spell) to its opposite variation (for example the horde spell for an alliance one, or the any class spell for a class specific one maybe)
Archived author: Revision • Posted: 2022-05-02T19:47:48.556000+00:00
Original source
The idea is mainly to use the attributes when inserting the data, so it populates the columns with the required information - like faction etc