mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11243] Allow riding training from other team factions when exalted
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
a19c308001
commit
44915f6f13
2 changed files with 8 additions and 1 deletions
|
|
@ -798,6 +798,13 @@ bool Creature::IsTrainerOf(Player* pPlayer, bool msg) const
|
|||
case TRAINER_TYPE_MOUNTS:
|
||||
if (GetCreatureInfo()->trainer_race && pPlayer->getRace() != GetCreatureInfo()->trainer_race)
|
||||
{
|
||||
// Allowed to train if exalted
|
||||
if (FactionTemplateEntry const* faction_template = getFactionTemplateEntry())
|
||||
{
|
||||
if (pPlayer->GetReputationRank(faction_template->faction) == REP_EXALTED)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (msg)
|
||||
{
|
||||
pPlayer->PlayerTalkClass->ClearMenus();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11242"
|
||||
#define REVISION_NR "11243"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue