[11243] Allow riding training from other team factions when exalted

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-03-14 00:00:58 +01:00
parent a19c308001
commit 44915f6f13
2 changed files with 8 additions and 1 deletions

View file

@ -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();

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11242"
#define REVISION_NR "11243"
#endif // __REVISION_NR_H__