38{
39
41 {
43 return false;
44 }
45
47
48 if (!object)
49 {
51 return false;
52 }
53 bool condMeets = false;
55 {
57 condMeets = true;
58 break;
60 {
63 break;
64 }
66 {
68 {
70 {
71
75 }
76 }
77 break;
78 }
80 {
82 {
84 {
86 }
87 }
88 break;
89 }
92 break;
94 {
96 {
98 {
100 {
101 condMeets = (
ConditionValue2 & (1 << player->GetReputationMgr().GetRank(faction)));
102 }
103 }
104 }
105 break;
106 }
108 {
110 {
112 {
114 }
115 }
116 break;
117 }
119 {
121 {
123 {
124
127 }
128 }
129 break;
130 }
132 {
135 break;
136 }
138 {
141 break;
142 }
144 {
146 {
148 {
150 }
151 }
152 break;
153 }
155 {
157 {
159 {
161 }
162 }
163 break;
164 }
166 {
168 {
170 {
172 }
173 }
174 break;
175 }
177 {
179 {
181 {
184 }
185 }
186 break;
187 }
189 {
191 {
193 {
196 }
197 }
198 break;
199 }
201 {
203 {
205 {
208 }
209 }
210 break;
211 }
213 {
215 {
217 {
218
220 condMeets = !player->IsQuestRewarded(
ConditionValue1) && player->SatisfyQuestExclusiveGroup(quest,
false);
221 }
222 }
223 break;
224 }
227 break;
229 {
230 Map* map =
object->GetMap();
232 {
234 {
236 {
239 break;
242 break;
245 break;
248 break;
249 }
250 }
251 }
252 break;
253 }
256 break;
259 break;
261 {
263 {
265 {
267 }
268 }
269 break;
270 }
272 {
275 break;
276 }
278 {
280 {
282 {
284 }
285 }
286 break;
287 }
289 {
291 break;
292 }
294 {
296 {
298 break;
299 }
300 else
301 {
303 {
305 condMeets = true;
306 else
307 condMeets = false;
308 }
309 break;
310 }
311 }
313 {
316 break;
317
319 {
321
323 {
325 {
328 break;
331 break;
332 default:
333 break;
334 }
335 }
336 }
337 break;
338 }
340 {
342 break;
343 }
345 {
347 {
350 if (toUnit && unit)
351 {
353 {
355 condMeets = unit == toUnit;
356 break;
359 break;
362 break;
365 break;
368 break;
371 break;
372 }
373 }
374 }
375 break;
376 }
378 {
380 {
383 if (toUnit && unit)
385 }
386 break;
387 }
389 {
392 break;
393 }
395 {
398 break;
399 }
401 {
404 break;
405 }
407 {
410 break;
411 }
413 {
415 break;
416 }
418 {
420 break;
421 }
423 {
425 {
427 {
429 }
430 }
431 break;
432 }
434 {
435 condMeets = ((1 <<
object->GetMap()->GetSpawnMode()) &
ConditionValue1);
436 break;
437 }
439 {
442 break;
443 }
445 {
448 break;
449 }
451 {
454 condMeets = true;
455 break;
456 }
458 {
461 break;
462 }
464 {
466 {
468 {
475 {
476 condMeets = true;
477 }
478 }
479 }
480 break;
481 }
483 {
485 {
487 {
489 }
490 }
491 break;
492 }
494 {
496 {
498 {
502 {
503 break;
504 }
505
507 {
508 condMeets = true;
509 }
510 }
511 }
512 break;
513 }
515 {
518 break;
519 }
521 {
523 {
525 {
527 }
529 {
531 }
533 {
535 }
536 }
537
538 break;
539 }
541 {
543 break;
544 }
546 {
548 {
550 {
551 if (
Pet* pet = player->GetPet())
552 {
554 }
555 }
556 }
557 break;
558 }
560 {
562 {
564 {
565 condMeets = player->IsInFlight();
566 }
567 }
568 break;
569 }
571 {
574 break;
575 }
577 {
579 break;
580 }
582 {
587 break;
588 }
589 default:
590 condMeets = false;
591 break;
592 }
593
595 condMeets = !condMeets;
596
597 if (!condMeets)
599
600
601 return condMeets;
602}
#define sAchievementMgr
Definition AchievementMgr.h:451
@ INSTANCE_INFO_DATA64
Definition ConditionMgr.h:174
@ INSTANCE_INFO_DATA
Definition ConditionMgr.h:171
@ INSTANCE_INFO_BOSS_STATE
Definition ConditionMgr.h:173
@ INSTANCE_INFO_GUID_DATA
Definition ConditionMgr.h:172
@ MAX_CONDITION_TARGETS
Definition ConditionMgr.h:179
@ RELATION_IN_PARTY
Definition ConditionMgr.h:161
@ RELATION_IN_RAID_OR_PARTY
Definition ConditionMgr.h:162
@ RELATION_CREATED_BY
Definition ConditionMgr.h:165
@ RELATION_SELF
Definition ConditionMgr.h:160
@ RELATION_PASSENGER_OF
Definition ConditionMgr.h:164
@ RELATION_OWNED_BY
Definition ConditionMgr.h:163
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:692
EncounterState
Definition InstanceScript.h:57
#define LOG_ERROR(filterType__,...)
Definition Log.h:158
#define LOG_DEBUG(filterType__,...)
Definition Log.h:170
#define sObjectMgr
Definition ObjectMgr.h:1650
#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:895
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool onlySpawned)
Definition ScriptedCreature.cpp:900
@ ALLIANCE
Definition SharedDefines.h:779
@ HORDE
Definition SharedDefines.h:778
@ TEAM_ALLIANCE
Definition SharedDefines.h:771
AuraType
Definition SpellAuraDefines.h:62
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:253
@ UNIT_FLAG_NOT_SELECTABLE
Definition UnitDefines.h:277
bool CompareValues(ComparisionType type, T val1, T val2)
Definition Util.h:597
ComparisionType
Definition Util.h:587
#define sWorldState
Definition WorldState.h:377
Definition GameObject.h:120
InstanceScript * GetInstanceScript()
Definition Map.h:639
Definition InstanceScript.h:143
bool IsDungeon() const
Definition Map.h:292
InstanceMap * ToInstanceMap()
Definition Map.h:374
Definition ObjectGuid.h:118
TypeID GetTypeId() const
Definition Object.h:128
GameObject * ToGameObject()
Definition Object.h:214
Creature * ToCreature()
Definition Object.h:206
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:113
Unit * ToUnit()
Definition Object.h:210
static DrunkenState GetDrunkenstateByValue(uint8 value)
Definition Player.cpp:970
Definition QuestDef.h:210
uint32 GetQuestId() const
Definition QuestDef.h:228
ReputationRank GetReactionTo(Unit const *target, bool checkOriginalFaction=false) const
Definition Unit.cpp:10134
bool IsCharmed() const
Definition Unit.h:1239
float GetHealthPct() const
Definition Unit.h:1035
ObjectGuid GetCreatorGUID() const
Definition Unit.h:670
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition Unit.cpp:10711
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:702
bool IsAlive() const
Definition Unit.h:1710
bool IsStandState() const
Definition Unit.cpp:16803
bool IsOnVehicle(Unit const *vehicle) const
Definition Unit.h:1843
virtual bool IsInWater() const
Definition Unit.cpp:4404
uint32 GetHealth() const
Definition Unit.h:1033
bool HasAuraType(AuraType auraType) const
Definition Unit.cpp:5793
uint8 getStandState() const
Definition Unit.h:1698
bool HasUnitState(const uint32 f) const
Definition Unit.h:691
bool IsInRaidWith(Unit const *unit) const
Definition Unit.cpp:18894
ObjectGuid GetOwnerGUID() const
Definition Unit.h:668
bool IsInPartyWith(Unit const *unit) const
Definition Unit.cpp:18871
bool IsSitState() const
Definition Unit.cpp:16794
float GetDistance(WorldObject const *obj) const
Definition Object.cpp:1250
Definition DBCStructure.h:40
Condition * mLastFailedCondition
Definition ConditionMgr.h:185
WorldObject * mConditionTargets[MAX_CONDITION_TARGETS]
Definition ConditionMgr.h:184
Definition DBCStructure.h:907