402 if (!tree || !player)
417 tree->
Attack(player,
true);
void DespawnOrUnsummon(uint32 msTimeToDespawn=0)
Definition: Creature.cpp:1774
bool Attack(Unit *victim, bool meleeAttack)
Definition: Unit.cpp:7222
Definition: Creature.h:467
Definition: zone_dragonblight.cpp:375
Player * ToPlayer()
Definition: Object.h:191
Definition: zone_dragonblight.cpp:378
void setFaction(uint32 faction)
Definition: Unit.h:1467
CreatureAI * AI() const
Definition: Creature.h:525
uint32_t uint32
Definition: Define.h:150
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
Unit * GetCaster()
Definition: SpellScript.cpp:394
Creature * GetHitCreature()
Definition: SpellScript.cpp:451
Definition: zone_dragonblight.cpp:374
Definition: zone_dragonblight.cpp:383
uint32 rand32()
Definition: Random.cpp:64
Definition: UpdateFields.h:135
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:869