121 bool condMeets =
false;
158 condMeets = (
ConditionValue2 & (1 << player->GetReputationMgr().GetRank(faction))) != 0;
236 Map* map =
object->GetMap();
333 condMeets = unit == toUnit;
410 condMeets = ((1 <<
object->GetMap()->GetSpawnMode()) &
ConditionValue1) != 0;
449 condMeets = !condMeets;
454 bool script =
sScriptMgr->OnConditionCheck(
this, sourceInfo);
455 return condMeets && script;
Definition: ConditionMgr.h:67
Definition: ConditionMgr.h:173
Definition: ConditionMgr.h:55
Definition: QuestDef.h:111
Definition: ConditionMgr.h:81
bool IsOnVehicle(const Unit *vehicle) const
Definition: Unit.cpp:14336
ReputationRank GetReactionTo(Unit const *target) const
Definition: Unit.cpp:7035
bool CompareValues(ComparisionType type, T val1, T val2)
Definition: Util.h:513
Definition: ConditionMgr.h:52
Definition: ConditionMgr.h:83
Definition: ConditionMgr.h:69
Definition: ConditionMgr.h:75
TC_GAME_API Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
Definition: ScriptedCreature.cpp:611
Definition: ConditionMgr.h:59
Definition: ConditionMgr.h:162
Definition: ConditionMgr.h:85
bool IsInPartyWith(Unit const *unit) const
Definition: Unit.cpp:14372
Definition: ConditionMgr.h:91
Definition: ConditionMgr.h:62
Definition: ConditionMgr.h:72
Definition: ConditionMgr.h:92
QuestStatus
Definition: QuestDef.h:108
Definition: ConditionMgr.h:76
Definition: ObjectGuid.h:32
bool IsDungeon() const
Definition: Map.h:395
Definition: ConditionMgr.h:172
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
Definition: Creature.h:467
EncounterState
Definition: InstanceScript.h:56
#define sWorld
Definition: World.h:887
Definition: ConditionMgr.h:56
Definition: QuestDef.h:110
Definition: ConditionMgr.h:80
T max(const T &x, const T &y)
Definition: g3dmath.h:320
Player * ToPlayer()
Definition: Object.h:191
TypeID GetTypeId() const
Definition: Object.h:113
Definition: ConditionMgr.h:70
Definition: ConditionMgr.h:54
Definition: DB2Structure.h:27
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1594
Definition: ConditionMgr.h:163
bool IsAlive() const
Definition: Unit.h:1692
Definition: ConditionMgr.h:61
std::string ToString(bool ext=false) const
Definition: ConditionMgr.cpp:649
Definition: ConditionMgr.h:73
Definition: ObjectGuid.h:34
uint8 ConditionTarget
Definition: ConditionMgr.h:209
Definition: ConditionMgr.h:64
uint32_t uint32
Definition: Define.h:150
Definition: ConditionMgr.h:66
Definition: ConditionMgr.h:159
Definition: ConditionMgr.h:51
Definition: ConditionMgr.h:78
Definition: ConditionMgr.h:58
uint32 ConditionValue3
Definition: ConditionMgr.h:204
Definition: ConditionMgr.h:57
Definition: ConditionMgr.h:161
bool NegativeCondition
Definition: ConditionMgr.h:210
Definition: ConditionMgr.h:90
uint32 ConditionValue2
Definition: ConditionMgr.h:203
Definition: DBCStructure.h:405
Definition: ConditionMgr.h:87
ObjectGuid const & GetGUID() const
Definition: Object.h:105
#define sGameEventMgr
Definition: GameEventMgr.h:184
ObjectGuid GetCreatorGUID() const
Definition: Unit.h:1700
uint32 ConditionValue1
Definition: ConditionMgr.h:202
Definition: ConditionMgr.h:77
Creature * ToCreature()
Definition: Object.h:194
Definition: ConditionMgr.h:71
Definition: QuestDef.h:113
virtual bool IsInWater() const
Definition: Unit.cpp:2964
Definition: InstanceScript.h:141
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1395
#define ASSERT
Definition: Errors.h:55
Definition: ConditionMgr.h:86
Definition: ConditionMgr.h:79
DBCStorage< FactionEntry > sFactionStore(Factionfmt)
#define sScriptMgr
Definition: ScriptMgr.h:837
WorldObject * mConditionTargets[MAX_CONDITION_TARGETS]
Definition: ConditionMgr.h:183
uint32_t uint32
Definition: g3dmath.h:168
Definition: ConditionMgr.h:160
Definition: ConditionMgr.h:164
Definition: ConditionMgr.h:63
ObjectGuid GetOwnerGUID() const
Definition: Unit.h:1698
bool IsInRaidWith(Unit const *unit) const
Definition: Unit.cpp:14391
uint32 GetHealth() const
Definition: Unit.h:1426
Definition: ConditionMgr.h:170
Definition: ConditionMgr.h:88
Definition: ConditionMgr.h:178
Definition: ConditionMgr.h:74
TC_GAME_API GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange)
Definition: ScriptedCreature.cpp:616
Unit * ToUnit()
Definition: Object.h:197
ConditionTypes ConditionType
Definition: ConditionMgr.h:201
Definition: ConditionMgr.h:84
#define sAchievementMgr
Definition: AchievementMgr.h:501
Definition: ConditionMgr.h:89
Condition const * mLastFailedCondition
Definition: ConditionMgr.h:184
Definition: ConditionMgr.h:60
float GetHealthPct() const
Definition: Unit.h:1434
Definition: ConditionMgr.h:53
Definition: ConditionMgr.h:68
Definition: ConditionMgr.h:82
Definition: ConditionMgr.h:65