35{
36
38 {
40 return false;
41 }
42
44
45 if (!object)
46 {
48 return false;
49 }
50 bool condMeets = false;
52 {
54 condMeets = true;
55 break;
57 {
60 break;
61 }
63 {
65 {
67 {
68
72 }
73 }
74 break;
75 }
77 {
79 {
81 {
83 }
84 }
85 break;
86 }
89 break;
91 {
93 {
95 {
97 {
98 condMeets = (
ConditionValue2 & (1 << player->GetReputationMgr().GetRank(faction)));
99 }
100 }
101 }
102 break;
103 }
105 {
107 {
109 {
111 }
112 }
113 break;
114 }
116 {
118 {
120 {
121
124 }
125 }
126 break;
127 }
129 {
132 break;
133 }
135 {
138 break;
139 }
141 {
143 {
145 {
147 }
148 }
149 break;
150 }
152 {
154 {
156 {
158 }
159 }
160 break;
161 }
163 {
165 {
167 {
169 }
170 }
171 break;
172 }
174 {
176 {
178 {
181 }
182 }
183 break;
184 }
186 {
188 {
190 {
193 }
194 }
195 break;
196 }
198 {
200 {
202 {
205 }
206 }
207 break;
208 }
210 {
212 {
214 {
215
217 condMeets = !player->IsQuestRewarded(
ConditionValue1) && player->SatisfyQuestExclusiveGroup(quest,
false);
218 }
219 }
220 break;
221 }
224 break;
226 {
227 Map* map =
object->GetMap();
229 {
231 {
233 {
236 break;
239 break;
242 break;
245 break;
246 }
247 }
248 }
249 break;
250 }
253 break;
256 break;
258 {
260 {
262 {
264 }
265 }
266 break;
267 }
269 {
272 break;
273 }
275 {
277 {
279 {
281 }
282 }
283 break;
284 }
286 {
288 break;
289 }
291 {
293 break;
294 }
296 {
299 break;
300
302 {
304
306 {
308 {
311 break;
314 break;
315 default:
316 break;
317 }
318 }
319 }
320 break;
321 }
323 {
325 break;
326 }
328 {
330 {
333 if (toUnit && unit)
334 {
336 {
338 condMeets = unit == toUnit;
339 break;
342 break;
345 break;
348 break;
351 break;
354 break;
355 }
356 }
357 }
358 break;
359 }
361 {
363 {
366 if (toUnit && unit)
368 }
369 break;
370 }
372 {
375 break;
376 }
378 {
381 break;
382 }
384 {
387 break;
388 }
390 {
393 break;
394 }
396 {
398 break;
399 }
401 {
403 break;
404 }
406 {
408 {
410 {
412 }
413 }
414 break;
415 }
417 {
418 condMeets = ((1 <<
object->GetMap()->GetSpawnMode()) &
ConditionValue1);
419 break;
420 }
422 {
425 break;
426 }
428 {
431 break;
432 }
434 {
437 condMeets = true;
438 break;
439 }
441 {
444 break;
445 }
447 {
449 {
451 {
458 {
459 condMeets = true;
460 }
461 }
462 }
463 break;
464 }
466 {
468 {
470 {
472 }
473 }
474 break;
475 }
477 {
479 {
481 {
485 {
486 break;
487 }
488
490 {
491 condMeets = true;
492 }
493 }
494 }
495 break;
496 }
498 {
501 break;
502 }
504 {
506 {
508 {
510 }
512 {
514 }
516 {
518 }
519 }
520
521 break;
522 }
524 {
526 break;
527 }
529 {
531 {
533 {
534 if (
Pet* pet = player->GetPet())
535 {
537 }
538 }
539 }
540 break;
541 }
543 {
545 {
547 {
548 condMeets = player->IsInFlight();
549 }
550 }
551 break;
552 }
554 {
557 break;
558 }
559 default:
560 condMeets = false;
561 break;
562 }
563
565 condMeets = !condMeets;
566
567 if (!condMeets)
569
570
571 return condMeets;
572}
#define ASSERT_NOTNULL(pointer)
Definition: Errors.h:85
std::uint64_t uint64
Definition: Define.h:107
std::uint16_t uint16
Definition: Define.h:109
#define LOG_ERROR(filterType__,...)
Definition: Log.h:159
#define LOG_DEBUG(filterType__,...)
Definition: Log.h:171
bool CompareValues(ComparisionType type, T val1, T val2)
Definition: Util.h:592
ComparisionType
Definition: Util.h:582
#define sAchievementMgr
Definition: AchievementMgr.h:421
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
Definition: ScriptedCreature.cpp:765
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool onlySpawned)
Definition: ScriptedCreature.cpp:770
@ INSTANCE_INFO_DATA64
Definition: ConditionMgr.h:172
@ INSTANCE_INFO_DATA
Definition: ConditionMgr.h:169
@ INSTANCE_INFO_BOSS_STATE
Definition: ConditionMgr.h:171
@ INSTANCE_INFO_GUID_DATA
Definition: ConditionMgr.h:170
@ MAX_CONDITION_TARGETS
Definition: ConditionMgr.h:177
@ RELATION_IN_PARTY
Definition: ConditionMgr.h:159
@ RELATION_IN_RAID_OR_PARTY
Definition: ConditionMgr.h:160
@ RELATION_CREATED_BY
Definition: ConditionMgr.h:163
@ RELATION_SELF
Definition: ConditionMgr.h:158
@ RELATION_PASSENGER_OF
Definition: ConditionMgr.h:162
@ RELATION_OWNED_BY
Definition: ConditionMgr.h:161
DBCStorage< FactionEntry > sFactionStore(FactionEntryfmt)
DBCStorage< AchievementEntry > sAchievementStore(Achievementfmt)
@ UNIT_FLAG_NON_ATTACKABLE
Definition: Unit.h:449
@ UNIT_FLAG_NOT_SELECTABLE
Definition: Unit.h:473
#define sGameEventMgr
Definition: GameEventMgr.h:186
#define sObjectMgr
Definition: ObjectMgr.h:1640
EncounterState
Definition: InstanceScript.h:55
#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
AuraType
Definition: SpellAuraDefines.h:62
@ TEAM_ALLIANCE
Definition: SharedDefines.h:732
@ ALLIANCE
Definition: SharedDefines.h:740
@ HORDE
Definition: SharedDefines.h:739
#define sWorld
Definition: World.h:451
Condition * mLastFailedCondition
Definition: ConditionMgr.h:183
WorldObject * mConditionTargets[MAX_CONDITION_TARGETS]
Definition: ConditionMgr.h:182
Definition: Creature.h:46
TypeID GetTypeId() const
Definition: Object.h:121
Creature * ToCreature()
Definition: Object.h:197
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:106
Unit * ToUnit()
Definition: Object.h:200
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Definition: ObjectGuid.h:120
Definition: Player.h:1046
static DrunkenState GetDrunkenstateByValue(uint8 value)
Definition: Player.cpp:960
ReputationRank GetReactionTo(Unit const *target, bool checkOriginalFaction=false) const
Definition: Unit.cpp:10037
bool IsCharmed() const
Definition: Unit.h:1871
float GetHealthPct() const
Definition: Unit.h:1448
ObjectGuid GetCreatorGUID() const
Definition: Unit.h:1816
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition: Unit.cpp:10576
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:1480
bool IsAlive() const
Definition: Unit.h:1808
bool IsStandState() const
Definition: Unit.cpp:16894
bool IsOnVehicle(Unit const *vehicle) const
Definition: Unit.h:2355
virtual bool IsInWater() const
Definition: Unit.cpp:4279
uint32 GetHealth() const
Definition: Unit.h:1440
bool HasAuraType(AuraType auraType) const
Definition: Unit.cpp:5617
uint8 getStandState() const
Definition: Unit.h:1534
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1398
bool IsInRaidWith(Unit const *unit) const
Definition: Unit.cpp:18965
ObjectGuid GetOwnerGUID() const
Definition: Unit.h:1814
bool IsInPartyWith(Unit const *unit) const
Definition: Unit.cpp:18942
bool IsSitState() const
Definition: Unit.cpp:16885
Definition: InstanceScript.h:140
bool IsDungeon() const
Definition: Map.h:447
InstanceMap * ToInstanceMap()
Definition: Map.h:544
InstanceScript * GetInstanceScript()
Definition: Map.h:825
Definition: QuestDef.h:207
uint32 GetQuestId() const
Definition: QuestDef.h:225
Definition: DBCStructure.h:40
Definition: DBCStructure.h:898