980 {
982
984 if (roll <= 50)
986 else if (roll <= 83)
988 else
990
995
996 if (!wilhelm || !apple || !drostan)
997 return;
998
999 switch (ev)
1000 {
1002 {
1005
1006 if (!bird || !crunchy)
1007 ;
1008 else
1009 {
1014
1019
1020 break;
1021 }
1022 [[fallthrough]];
1023 }
1025 {
1029 break;
1030 }
1032 {
1038
1039
1040 break;
1041 }
1042 }
1043 }
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=0ms)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition CreatureAI.cpp:67
CreatureAI * AI() const
Definition Creature.h:144
void MovePoint(uint32 id, const Position &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true, std::optional< AnimTier > animTier=std::nullopt)
Definition MotionMaster.h:240
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:13964
MotionMaster * GetMotionMaster()
Definition Unit.h:1759
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:1375
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2498
float GetMapWaterOrGroundLevel(Position pos, float *ground=nullptr) const
Definition Object.h:705
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:949
@ EVENT_HIT
Definition zone_sholazar_basin.cpp:952
@ SPELL_MISS_APPLE
Definition zone_sholazar_basin.cpp:946
@ SAY_DROSTAN_REPLY_MISS
Definition zone_sholazar_basin.cpp:957
@ SPELL_MISS_BIRD_APPLE
Definition zone_sholazar_basin.cpp:947
@ NPC_DROSTAN
Definition zone_sholazar_basin.cpp:941
@ SAY_WILHELM_HIT
Definition zone_sholazar_basin.cpp:956
@ NPC_CRUNCHY
Definition zone_sholazar_basin.cpp:942
@ SPELL_APPLE_FALL
Definition zone_sholazar_basin.cpp:948
@ SAY_WILHELM_MISS
Definition zone_sholazar_basin.cpp:955
@ EVENT_MISS_BIRD
Definition zone_sholazar_basin.cpp:953
@ EVENT_MISS
Definition zone_sholazar_basin.cpp:951
@ NPC_THICKBIRD
Definition zone_sholazar_basin.cpp:943
@ NPC_APPLE
Definition zone_sholazar_basin.cpp:940
@ SPELL_HIT_APPLE
Definition zone_sholazar_basin.cpp:945