[11853] Add new flag_extra NO_TALKTO_CREDIT

This flag is intended to make the process of removing the automatismn gossip.click -> quest-credit easier.
This flag will be removed when the converting is complete

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2011-11-30 20:25:00 +01:00
parent 4c82458874
commit 601805b57e
3 changed files with 3 additions and 2 deletions

View file

@ -54,6 +54,7 @@ enum CreatureFlagsExtra
CREATURE_FLAG_EXTRA_NOT_TAUNTABLE = 0x00000100, // creature is immune to taunt auras and effect attack me
CREATURE_FLAG_EXTRA_AGGRO_ZONE = 0x00000200, // creature sets itself in combat with zone on aggro
CREATURE_FLAG_EXTRA_GUARD = 0x00000400, // creature is a guard
CREATURE_FLAG_EXTRA_NO_TALKTO_CREDIT= 0x00000800, // creature doesn't give quest-credits when talked to (temporarily flag)
};
// GCC have alternative #pragma pack(N) syntax and old gcc version not support pack(push,N), also any gcc version not support it at some platform

View file

@ -13071,7 +13071,7 @@ void Player::PrepareGossipMenu(WorldObject *pSource, uint32 menuId)
if (canTalkToCredit)
{
if (pSource->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP))
if (pSource->HasFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP) && !(((Creature*)pSource)->GetCreatureInfo()->flags_extra & CREATURE_FLAG_EXTRA_NO_TALKTO_CREDIT))
TalkedToCreature(pSource->GetEntry(), pSource->GetObjectGuid());
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11852"
#define REVISION_NR "11853"
#endif // __REVISION_NR_H__