36{
37
39 {
41 return false;
42 }
43
45
46 if (!object)
47 {
49 return false;
50 }
51 bool condMeets = false;
53 {
55 condMeets = true;
56 break;
58 {
61 break;
62 }
64 {
66 {
68 {
69
73 }
74 }
75 break;
76 }
78 {
80 {
82 {
84 }
85 }
86 break;
87 }
90 break;
92 {
94 {
96 {
98 {
99 condMeets = (
ConditionValue2 & (1 << player->GetReputationMgr().GetRank(faction)));
100 }
101 }
102 }
103 break;
104 }
106 {
108 {
110 {
112 }
113 }
114 break;
115 }
117 {
119 {
121 {
122
125 }
126 }
127 break;
128 }
130 {
133 break;
134 }
136 {
139 break;
140 }
142 {
144 {
146 {
148 }
149 }
150 break;
151 }
153 {
155 {
157 {
159 }
160 }
161 break;
162 }
164 {
166 {
168 {
170 }
171 }
172 break;
173 }
175 {
177 {
179 {
182 }
183 }
184 break;
185 }
187 {
189 {
191 {
194 }
195 }
196 break;
197 }
199 {
201 {
203 {
206 }
207 }
208 break;
209 }
211 {
213 {
215 {
216
218 condMeets = !player->IsQuestRewarded(
ConditionValue1) && player->SatisfyQuestExclusiveGroup(quest,
false);
219 }
220 }
221 break;
222 }
225 break;
227 {
228 Map* map =
object->GetMap();
230 {
232 {
234 {
237 break;
240 break;
243 break;
246 break;
247 }
248 }
249 }
250 break;
251 }
254 break;
257 break;
259 {
261 {
263 {
265 }
266 }
267 break;
268 }
270 {
273 break;
274 }
276 {
278 {
280 {
282 }
283 }
284 break;
285 }
287 {
289 break;
290 }
292 {
294 {
296 break;
297 }
298 else
299 {
301 {
303 condMeets = true;
304 else
305 condMeets = false;
306 }
307 break;
308 }
309 }
311 {
314 break;
315
317 {
319
321 {
323 {
326 break;
329 break;
330 default:
331 break;
332 }
333 }
334 }
335 break;
336 }
338 {
340 break;
341 }
343 {
345 {
348 if (toUnit && unit)
349 {
351 {
353 condMeets = unit == toUnit;
354 break;
357 break;
360 break;
363 break;
366 break;
369 break;
370 }
371 }
372 }
373 break;
374 }
376 {
378 {
381 if (toUnit && unit)
383 }
384 break;
385 }
387 {
390 break;
391 }
393 {
396 break;
397 }
399 {
402 break;
403 }
405 {
408 break;
409 }
411 {
413 break;
414 }
416 {
418 break;
419 }
421 {
423 {
425 {
427 }
428 }
429 break;
430 }
432 {
433 condMeets = ((1 <<
object->GetMap()->GetSpawnMode()) &
ConditionValue1);
434 break;
435 }
437 {
440 break;
441 }
443 {
446 break;
447 }
449 {
452 condMeets = true;
453 break;
454 }
456 {
459 break;
460 }
462 {
464 {
466 {
473 {
474 condMeets = true;
475 }
476 }
477 }
478 break;
479 }
481 {
483 {
485 {
487 }
488 }
489 break;
490 }
492 {
494 {
496 {
500 {
501 break;
502 }
503
505 {
506 condMeets = true;
507 }
508 }
509 }
510 break;
511 }
513 {
516 break;
517 }
519 {
521 {
523 {
525 }
527 {
529 }
531 {
533 }
534 }
535
536 break;
537 }
539 {
541 break;
542 }
544 {
546 {
548 {
549 if (
Pet* pet = player->GetPet())
550 {
552 }
553 }
554 }
555 break;
556 }
558 {
560 {
562 {
563 condMeets = player->IsInFlight();
564 }
565 }
566 break;
567 }
569 {
572 break;
573 }
575 {
577 break;
578 }
579 default:
580 condMeets = false;
581 break;
582 }
583
585 condMeets = !condMeets;
586
587 if (!condMeets)
589
590
591 return condMeets;
592}
#define ASSERT_NOTNULL(pointer)
Definition: Errors.h:85
#define LOG_ERROR(filterType__,...)
Definition: Log.h:157
#define LOG_DEBUG(filterType__,...)
Definition: Log.h:169
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
@ ALLIANCE
Definition: SharedDefines.h:768
@ HORDE
Definition: SharedDefines.h:767
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
#define sObjectMgr
Definition: ObjectMgr.h:1635
Creature * GetClosestCreatureWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool alive)
Definition: ScriptedCreature.cpp:850
GameObject * GetClosestGameObjectWithEntry(WorldObject *source, uint32 entry, float maxSearchRange, bool onlySpawned)
Definition: ScriptedCreature.cpp:855
#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
EncounterState
Definition: InstanceScript.h:56
AuraType
Definition: SpellAuraDefines.h:62
#define sGameEventMgr
Definition: GameEventMgr.h:186
#define sWorldState
Definition: WorldState.h:94
WorldStateConditionState
Definition: WorldState.h:35
WorldStateCondition
Definition: WorldState.h:25
@ GO_STATE_READY
Definition: GameObjectData.h:690
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
@ UNIT_FLAG_NOT_SELECTABLE
Definition: UnitDefines.h:254
DBCStorage< FactionEntry > sFactionStore(FactionEntryfmt)
DBCStorage< AchievementEntry > sAchievementStore(Achievementfmt)
@ INSTANCE_INFO_DATA64
Definition: ConditionMgr.h:173
@ INSTANCE_INFO_DATA
Definition: ConditionMgr.h:170
@ INSTANCE_INFO_BOSS_STATE
Definition: ConditionMgr.h:172
@ INSTANCE_INFO_GUID_DATA
Definition: ConditionMgr.h:171
@ MAX_CONDITION_TARGETS
Definition: ConditionMgr.h:178
@ RELATION_IN_PARTY
Definition: ConditionMgr.h:160
@ RELATION_IN_RAID_OR_PARTY
Definition: ConditionMgr.h:161
@ RELATION_CREATED_BY
Definition: ConditionMgr.h:164
@ RELATION_SELF
Definition: ConditionMgr.h:159
@ RELATION_PASSENGER_OF
Definition: ConditionMgr.h:163
@ RELATION_OWNED_BY
Definition: ConditionMgr.h:162
#define sAchievementMgr
Definition: AchievementMgr.h:451
#define sWorld
Definition: World.h:443
Condition * mLastFailedCondition
Definition: ConditionMgr.h:184
WorldObject * mConditionTargets[MAX_CONDITION_TARGETS]
Definition: ConditionMgr.h:183
Definition: Creature.h:43
Definition: GameObject.h:120
TypeID GetTypeId() const
Definition: Object.h:127
Creature * ToCreature()
Definition: Object.h:205
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
Unit * ToUnit()
Definition: Object.h:209
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1256
Definition: ObjectGuid.h:118
Definition: Player.h:1081
static DrunkenState GetDrunkenstateByValue(uint8 value)
Definition: Player.cpp:961
ReputationRank GetReactionTo(Unit const *target, bool checkOriginalFaction=false) const
Definition: Unit.cpp:10064
bool IsCharmed() const
Definition: Unit.h:1235
float GetHealthPct() const
Definition: Unit.h:1031
ObjectGuid GetCreatorGUID() const
Definition: Unit.h:680
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition: Unit.cpp:10616
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:712
bool IsAlive() const
Definition: Unit.h:1654
bool IsStandState() const
Definition: Unit.cpp:16720
bool IsOnVehicle(Unit const *vehicle) const
Definition: Unit.h:1787
virtual bool IsInWater() const
Definition: Unit.cpp:4339
uint32 GetHealth() const
Definition: Unit.h:1029
bool HasAuraType(AuraType auraType) const
Definition: Unit.cpp:5705
uint8 getStandState() const
Definition: Unit.h:1642
bool HasUnitState(const uint32 f) const
Definition: Unit.h:701
bool IsInRaidWith(Unit const *unit) const
Definition: Unit.cpp:18797
ObjectGuid GetOwnerGUID() const
Definition: Unit.h:678
bool IsInPartyWith(Unit const *unit) const
Definition: Unit.cpp:18774
bool IsSitState() const
Definition: Unit.cpp:16711
Definition: InstanceScript.h:142
bool IsDungeon() const
Definition: Map.h:446
InstanceMap * ToInstanceMap()
Definition: Map.h:544
InstanceScript * GetInstanceScript()
Definition: Map.h:829
Definition: QuestDef.h:210
uint32 GetQuestId() const
Definition: QuestDef.h:228
Definition: DBCStructure.h:39
Definition: DBCStructure.h:906