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 {
295 break;
296 }
297 else
298 {
300 {
302 condMeets = true;
303 else
304 condMeets = false;
305 }
306 break;
307 }
308 }
310 {
313 break;
314
316 {
318
320 {
322 {
325 break;
328 break;
329 default:
330 break;
331 }
332 }
333 }
334 break;
335 }
337 {
339 break;
340 }
342 {
344 {
347 if (toUnit && unit)
348 {
350 {
352 condMeets = unit == toUnit;
353 break;
356 break;
359 break;
362 break;
365 break;
368 break;
369 }
370 }
371 }
372 break;
373 }
375 {
377 {
380 if (toUnit && unit)
382 }
383 break;
384 }
386 {
389 break;
390 }
392 {
395 break;
396 }
398 {
401 break;
402 }
404 {
407 break;
408 }
410 {
412 break;
413 }
415 {
417 break;
418 }
420 {
422 {
424 {
426 }
427 }
428 break;
429 }
431 {
432 condMeets = ((1 <<
object->GetMap()->GetSpawnMode()) &
ConditionValue1);
433 break;
434 }
436 {
439 break;
440 }
442 {
445 break;
446 }
448 {
451 condMeets = true;
452 break;
453 }
455 {
458 break;
459 }
461 {
463 {
465 {
472 {
473 condMeets = true;
474 }
475 }
476 }
477 break;
478 }
480 {
482 {
484 {
486 }
487 }
488 break;
489 }
491 {
493 {
495 {
499 {
500 break;
501 }
502
504 {
505 condMeets = true;
506 }
507 }
508 }
509 break;
510 }
512 {
515 break;
516 }
518 {
520 {
522 {
524 }
526 {
528 }
530 {
532 }
533 }
534
535 break;
536 }
538 {
540 break;
541 }
543 {
545 {
547 {
548 if (
Pet* pet = player->GetPet())
549 {
551 }
552 }
553 }
554 break;
555 }
557 {
559 {
561 {
562 condMeets = player->IsInFlight();
563 }
564 }
565 break;
566 }
568 {
571 break;
572 }
573 default:
574 condMeets = false;
575 break;
576 }
577
579 condMeets = !condMeets;
580
581 if (!condMeets)
583
584
585 return condMeets;
586}
#define LOG_ERROR(filterType__,...)
Definition: Log.h:156
#define LOG_DEBUG(filterType__,...)
Definition: Log.h:168
bool CompareValues(ComparisionType type, T val1, T val2)
Definition: Util.h:597
ComparisionType
Definition: Util.h:587
std::uint64_t uint64
Definition: Define.h:106
std::uint16_t uint16
Definition: Define.h:108
#define ASSERT_NOTNULL(pointer)
Definition: Errors.h:85
@ 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
@ 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
@ MAX_CONDITION_TARGETS
Definition: ConditionMgr.h:177
EncounterState
Definition: InstanceScript.h:56
#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
#define sObjectMgr
Definition: ObjectMgr.h:1623
#define sGameEventMgr
Definition: GameEventMgr.h:186
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
Definition: ScriptedCreature.cpp:817
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool onlySpawned)
Definition: ScriptedCreature.cpp:822
DBCStorage< FactionEntry > sFactionStore(FactionEntryfmt)
DBCStorage< AchievementEntry > sAchievementStore(Achievementfmt)
#define sAchievementMgr
Definition: AchievementMgr.h:452
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
@ UNIT_FLAG_NOT_SELECTABLE
Definition: UnitDefines.h:254
@ GO_STATE_READY
Definition: GameObjectData.h:691
AuraType
Definition: SpellAuraDefines.h:62
@ ALLIANCE
Definition: SharedDefines.h:768
@ HORDE
Definition: SharedDefines.h:767
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
#define sWorld
Definition: World.h:444
Condition * mLastFailedCondition
Definition: ConditionMgr.h:183
WorldObject * mConditionTargets[MAX_CONDITION_TARGETS]
Definition: ConditionMgr.h:182
Definition: Creature.h:46
Definition: GameObject.h:121
TypeID GetTypeId() const
Definition: Object.h:124
Creature * ToCreature()
Definition: Object.h:202
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Unit * ToUnit()
Definition: Object.h:206
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Definition: ObjectGuid.h:118
Definition: Player.h:1064
static DrunkenState GetDrunkenstateByValue(uint8 value)
Definition: Player.cpp:960
ReputationRank GetReactionTo(Unit const *target, bool checkOriginalFaction=false) const
Definition: Unit.cpp:10026
bool IsCharmed() const
Definition: Unit.h:1266
float GetHealthPct() const
Definition: Unit.h:877
ObjectGuid GetCreatorGUID() const
Definition: Unit.h:1212
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition: Unit.cpp:10578
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:682
bool IsAlive() const
Definition: Unit.h:1204
bool IsStandState() const
Definition: Unit.cpp:16676
bool IsOnVehicle(Unit const *vehicle) const
Definition: Unit.h:1674
virtual bool IsInWater() const
Definition: Unit.cpp:4321
uint32 GetHealth() const
Definition: Unit.h:869
bool HasAuraType(AuraType auraType) const
Definition: Unit.cpp:5676
uint8 getStandState() const
Definition: Unit.h:982
bool HasUnitState(const uint32 f) const
Definition: Unit.h:673
bool IsInRaidWith(Unit const *unit) const
Definition: Unit.cpp:18753
ObjectGuid GetOwnerGUID() const
Definition: Unit.h:1210
bool IsInPartyWith(Unit const *unit) const
Definition: Unit.cpp:18730
bool IsSitState() const
Definition: Unit.cpp:16667
Definition: InstanceScript.h:142
bool IsDungeon() const
Definition: Map.h:448
InstanceMap * ToInstanceMap()
Definition: Map.h:546
InstanceScript * GetInstanceScript()
Definition: Map.h:831
Definition: QuestDef.h:210
uint32 GetQuestId() const
Definition: QuestDef.h:228
Definition: DBCStructure.h:40
Definition: DBCStructure.h:907