mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +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:
|
case TRAINER_TYPE_MOUNTS:
|
||||||
if (GetCreatureInfo()->trainer_race && pPlayer->getRace() != GetCreatureInfo()->trainer_race)
|
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)
|
if (msg)
|
||||||
{
|
{
|
||||||
pPlayer->PlayerTalkClass->ClearMenus();
|
pPlayer->PlayerTalkClass->ClearMenus();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11242"
|
#define REVISION_NR "11243"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue