39{
40
42 {
44 return false;
45 }
46
48
49 if (!object)
50 {
52 return false;
53 }
54 bool condMeets = false;
56 {
58 condMeets = true;
59 break;
61 {
64 break;
65 }
67 {
69 {
71 {
72
76 }
77 }
78 break;
79 }
81 {
83 {
85 {
87 }
88 }
89 break;
90 }
93 break;
95 {
97 {
99 {
101 {
102 condMeets = (
ConditionValue2 & (1 << player->GetReputationMgr().GetRank(faction)));
103 }
104 }
105 }
106 break;
107 }
109 {
111 {
113 {
115 }
116 }
117 break;
118 }
120 {
122 {
124 {
125
128 }
129 }
130 break;
131 }
133 {
136 break;
137 }
139 {
142 break;
143 }
145 {
147 {
149 {
151 }
152 }
153 break;
154 }
156 {
158 {
160 {
162 }
163 }
164 break;
165 }
167 {
169 {
171 {
173 }
174 }
175 break;
176 }
178 {
180 {
182 {
185 }
186 }
187 break;
188 }
190 {
192 {
194 {
197 }
198 }
199 break;
200 }
202 {
204 {
206 {
209 }
210 }
211 break;
212 }
214 {
216 {
218 {
219
221 condMeets = !player->IsQuestRewarded(
ConditionValue1) && player->SatisfyQuestExclusiveGroup(quest,
false);
222 }
223 }
224 break;
225 }
228 break;
230 {
231 Map* map =
object->GetMap();
233 {
235 {
237 {
240 break;
243 break;
246 break;
249 break;
250 }
251 }
252 }
253 break;
254 }
257 break;
260 break;
262 {
264 {
266 {
268 }
269 }
270 break;
271 }
273 {
276 break;
277 }
279 {
281 {
283 {
285 }
286 }
287 break;
288 }
290 {
292 break;
293 }
295 {
297 {
299 break;
300 }
301 else
302 {
304 {
306 condMeets = true;
307 else
308 condMeets = false;
309 }
310 break;
311 }
312 }
314 {
317 break;
318
320 {
322
324 {
326 {
329 break;
332 break;
333 default:
334 break;
335 }
336 }
337 }
338 break;
339 }
341 {
343 break;
344 }
346 {
348 {
351 if (toUnit && unit)
352 {
354 {
356 condMeets = unit == toUnit;
357 break;
360 break;
363 break;
366 break;
369 break;
372 break;
373 }
374 }
375 }
376 break;
377 }
379 {
381 {
384 if (toUnit && unit)
386 }
387 break;
388 }
390 {
393 break;
394 }
396 {
399 break;
400 }
402 {
405 break;
406 }
408 {
411 break;
412 }
414 {
416 break;
417 }
419 {
421 break;
422 }
424 {
426 {
428 {
430 }
431 }
432 break;
433 }
435 {
436 condMeets = ((1 <<
object->GetMap()->GetSpawnMode()) &
ConditionValue1);
437 break;
438 }
440 {
443 break;
444 }
446 {
449 break;
450 }
452 {
455 condMeets = true;
456 break;
457 }
459 {
462 break;
463 }
465 {
467 {
469 {
476 {
477 condMeets = true;
478 }
479 }
480 }
481 break;
482 }
484 {
486 {
488 {
490 }
491 }
492 break;
493 }
495 {
497 {
499 {
503 {
504 break;
505 }
506
508 {
509 condMeets = true;
510 }
511 }
512 }
513 break;
514 }
516 {
519 break;
520 }
522 {
524 {
526 {
528 }
530 {
532 }
534 {
536 }
537 }
538
539 break;
540 }
542 {
544 break;
545 }
547 {
549 {
551 {
552 if (
sLFGMgr->IsPlayerQueuedForRandomDungeon(player->GetGUID()))
553 {
555 condMeets = true;
556 else if (
Map* map = player->GetMap())
558 }
559 }
560 }
561 break;
562 }
564 {
566 {
568 {
569 if (
Pet* pet = player->GetPet())
570 {
572 }
573 }
574 }
575 break;
576 }
578 {
580 {
582 {
583 condMeets = player->IsInFlight();
584 }
585 }
586 break;
587 }
589 {
592 break;
593 }
595 {
597 break;
598 }
600 {
605 break;
606 }
607 default:
608 condMeets = false;
609 break;
610 }
611
613 condMeets = !condMeets;
614
615 if (!condMeets)
617
618
619 return condMeets;
620}
#define sAchievementMgr
Definition AchievementMgr.h:451
@ INSTANCE_INFO_DATA64
Definition ConditionMgr.h:175
@ INSTANCE_INFO_DATA
Definition ConditionMgr.h:172
@ INSTANCE_INFO_BOSS_STATE
Definition ConditionMgr.h:174
@ INSTANCE_INFO_GUID_DATA
Definition ConditionMgr.h:173
@ MAX_CONDITION_TARGETS
Definition ConditionMgr.h:180
@ RELATION_IN_PARTY
Definition ConditionMgr.h:162
@ RELATION_IN_RAID_OR_PARTY
Definition ConditionMgr.h:163
@ RELATION_CREATED_BY
Definition ConditionMgr.h:166
@ RELATION_SELF
Definition ConditionMgr.h:161
@ RELATION_PASSENGER_OF
Definition ConditionMgr.h:165
@ RELATION_OWNED_BY
Definition ConditionMgr.h:164
Difficulty
Definition DBCEnums.h:266
DBCStorage< FactionEntry > sFactionStore(FactionEntryfmt)
DBCStorage< AchievementEntry > sAchievementStore(Achievementfmt)
std::uint64_t uint64
Definition Define.h:106
std::uint16_t uint16
Definition Define.h:108
#define ASSERT_NOTNULL(pointer)
Definition Errors.h:85
#define sGameEventMgr
Definition GameEventMgr.h:201
@ GO_STATE_READY
Definition GameObjectData.h:709
EncounterState
Definition InstanceScript.h:57
#define sLFGMgr
Definition LFGMgr.h:658
#define LOG_ERROR(filterType__,...)
Definition Log.h:158
#define LOG_DEBUG(filterType__,...)
Definition Log.h:170
#define sObjectMgr
Definition ObjectMgr.h:1712
#define MAX_QUEST_LOG_SIZE
Definition QuestDef.h:33
QuestStatus
Definition QuestDef.h:99
@ QUEST_STATUS_REWARDED
Definition QuestDef.h:106
@ QUEST_STATUS_FAILED
Definition QuestDef.h:105
@ QUEST_STATUS_INCOMPLETE
Definition QuestDef.h:103
@ QUEST_STATUS_NONE
Definition QuestDef.h:100
@ QUEST_STATUS_COMPLETE
Definition QuestDef.h:101
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
Definition ScriptedCreature.cpp:933
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool onlySpawned)
Definition ScriptedCreature.cpp:938
@ ALLIANCE
Definition SharedDefines.h:756
@ HORDE
Definition SharedDefines.h:755
@ TEAM_ALLIANCE
Definition SharedDefines.h:748
AuraType
Definition SpellAuraDefines.h:62
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:258
@ UNIT_FLAG_NOT_SELECTABLE
Definition UnitDefines.h:282
bool CompareValues(ComparisionType type, T val1, T val2)
Definition Util.h:588
ComparisionType
Definition Util.h:578
#define sWorldState
Definition WorldState.h:377
Definition GameObject.h:120
InstanceScript * GetInstanceScript()
Definition Map.h:660
Definition InstanceScript.h:143
bool IsDungeon() const
Definition Map.h:295
InstanceMap * ToInstanceMap()
Definition Map.h:378
Difficulty GetDifficulty() const
Definition Map.h:290
Definition ObjectGuid.h:118
Player * ToPlayer()
Definition Object.h:202
TypeID GetTypeId() const
Definition Object.h:129
GameObject * ToGameObject()
Definition Object.h:214
Creature * ToCreature()
Definition Object.h:206
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:114
Unit * ToUnit()
Definition Object.h:210
static DrunkenState GetDrunkenstateByValue(uint8 value)
Definition Player.cpp:976
Definition QuestDef.h:210
uint32 GetQuestId() const
Definition QuestDef.h:228
ReputationRank GetReactionTo(Unit const *target, bool checkOriginalFaction=false) const
Definition Unit.cpp:7064
bool IsCharmed() const
Definition Unit.h:1310
float GetHealthPct() const
Definition Unit.h:1110
ObjectGuid GetCreatorGUID() const
Definition Unit.h:715
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition Unit.cpp:7698
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:747
bool IsAlive() const
Definition Unit.h:1793
bool IsStandState() const
Definition Unit.cpp:13074
bool IsOnVehicle(Unit const *vehicle) const
Definition Unit.h:1927
virtual bool IsInWater() const
Definition Unit.cpp:4521
uint32 GetHealth() const
Definition Unit.h:1108
bool HasAuraType(AuraType auraType) const
Definition Unit.cpp:5989
uint8 getStandState() const
Definition Unit.h:1780
bool HasUnitState(const uint32 f) const
Definition Unit.h:736
bool IsInRaidWith(Unit const *unit) const
Definition Unit.cpp:15022
ObjectGuid GetOwnerGUID() const
Definition Unit.h:713
bool IsInPartyWith(Unit const *unit) const
Definition Unit.cpp:14999
bool IsSitState() const
Definition Unit.cpp:13065
float GetDistance(WorldObject const *obj) const
Definition Object.cpp:1295
Definition DBCStructure.h:40
Condition * mLastFailedCondition
Definition ConditionMgr.h:186
WorldObject * mConditionTargets[MAX_CONDITION_TARGETS]
Definition ConditionMgr.h:185
Definition DBCStructure.h:907