1037 {
1039
1041 if (roll <= 50)
1043 else if (roll <= 83)
1045 else
1047
1052
1053 if (!wilhelm || !apple || !drostan)
1054 return;
1055
1056 switch (ev)
1057 {
1059 {
1062
1063 if (!bird || !crunchy)
1064 ;
1065 else
1066 {
1071
1076
1077 break;
1078 }
1079 [[fallthrough]];
1080 }
1082 {
1086 break;
1087 }
1089 {
1095
1096
1097 break;
1098 }
1099 }
1100 }
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition CreatureAI.cpp:52
CreatureAI * AI() const
Definition Creature.h:141
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition MotionMaster.h:213
Player * ToPlayer()
Definition Object.h:202
Creature * ToCreature()
Definition Object.h:206
Unit * GetHitUnit()
Definition SpellScript.cpp:448
Unit * GetCaster()
Definition SpellScript.cpp:401
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition Unit.cpp:17749
MotionMaster * GetMotionMaster()
Definition Unit.h:1664
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1179
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2459
float GetMapWaterOrGroundLevel(Position pos, float *ground=nullptr) const
Definition Object.h:615
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122
@ SPELL_BIRD_FALL
Definition zone_sholazar_basin.cpp:1006
@ EVENT_HIT
Definition zone_sholazar_basin.cpp:1009
@ SPELL_MISS_APPLE
Definition zone_sholazar_basin.cpp:1003
@ SAY_DROSTAN_REPLY_MISS
Definition zone_sholazar_basin.cpp:1014
@ SPELL_MISS_BIRD_APPLE
Definition zone_sholazar_basin.cpp:1004
@ NPC_DROSTAN
Definition zone_sholazar_basin.cpp:998
@ SAY_WILHELM_HIT
Definition zone_sholazar_basin.cpp:1013
@ NPC_CRUNCHY
Definition zone_sholazar_basin.cpp:999
@ SPELL_APPLE_FALL
Definition zone_sholazar_basin.cpp:1005
@ SAY_WILHELM_MISS
Definition zone_sholazar_basin.cpp:1012
@ EVENT_MISS_BIRD
Definition zone_sholazar_basin.cpp:1010
@ EVENT_MISS
Definition zone_sholazar_basin.cpp:1008
@ NPC_THICKBIRD
Definition zone_sholazar_basin.cpp:1000
@ NPC_APPLE
Definition zone_sholazar_basin.cpp:997
@ SPELL_HIT_APPLE
Definition zone_sholazar_basin.cpp:1002