122 aur->SetDuration(aur->GetSpellInfo()->GetMaxDuration(),
true);
167 aur->SetDuration(std::min(newDuration, aur->GetMaxDuration()),
true);
350 if (
Pet* target = caster->GetPet())
693 if (target->getLevel() > caster->
getLevel())
@ SPELL_EFFECT_SCRIPT_EFFECT
@ SPELL_FAILED_BAD_TARGETS
@ SPELL_FAILED_BAD_IMPLICIT_TARGETS
@ SPELL_FAILED_ALREADY_HAVE_CHARM
@ SPELL_FAILED_NO_EDIBLE_CORPSES
@ SPELL_FAILED_DONT_REPORT
@ SPELL_FAILED_ALREADY_HAVE_SUMMON
@ SPELL_AURA_PERIODIC_DUMMY
@ AURA_EFFECT_HANDLE_REAL_OR_REAPPLY_MASK
@ AURA_EFFECT_HANDLE_REAL
#define SpellCheckCastFn(F)
#define AuraEffectProcFn(F, I, N)
#define SpellEffectFn(F, I, N)
#define AuraEffectPeriodicFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraCheckProcFn(F)
#define AuraEffectCalcSpellModFn(F, I, N)
#define AuraEffectRemoveFn(F, I, N, M)
@ TRIGGERED_FULL_MASK
Will ignore most target checks (mostly DBC target checks).
@ TRIGGERED_IGNORE_CASTER_AURASTATE
Will ignore shapeshift checks.
@ CURRENT_AUTOREPEAT_SPELL
bool roll_chance_i(int chance)
int32 GetMiscValue() const
uint32 GetEffIndex() const
void PreventDefaultAction()
AuraApplication const * GetTargetApplication() const
HookList< EffectApplyHandler > AfterEffectRemove
HookList< EffectPeriodicHandler > OnEffectPeriodic
SpellInfo const * GetSpellInfo() const
HookList< EffectApplyHandler > AfterEffectApply
HookList< EffectCalcSpellModHandler > DoEffectCalcSpellMod
HookList< CheckProcHandler > DoCheckProc
HookList< EffectProcHandler > OnEffectProc
uint8 GetStackAmount() const
void VisitFirstFound(const float &x, const float &y, float radius, NOTIFIER ¬ifier)
void SendAttackSwingCancelAttack()
bool CanTameExoticPets() const
SpellEffectInfo Effects[MAX_SPELL_EFFECTS]
float GetMaxRange(bool positive=false, Unit *caster=NULL, Spell *spell=NULL) const
Unit * GetExplTargetUnit()
HookList< CheckCastHandler > OnCheckCast
SpellInfo const * GetSpellInfo()
HookList< HitHandler > OnHit
HookList< EffectHandler > OnEffectHit
HookList< EffectHandler > OnEffectHitTarget
SpellScriptLoader(const char *name)
uint64 GetCharmGUID() const
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
void CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
uint64 GetPetGUID() const
bool HasAura(uint32 spellId, uint64 casterGUID=0, uint64 itemCasterGUID=0, uint32 reqEffMask=0) const
Unit * GetRedirectThreatTarget()
void CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=NULL, AuraEffect const *triggeredByAura=NULL, uint64 originalCaster=0)
void ResetRedirectThreat()
uint32 CountPctFromMaxHealth(int32 pct) const
void InterruptSpell(CurrentSpellTypes spellType, bool withDelayed=true, bool withInstant=true)
PrepareAuraScript(spell_hun_a_murder_of_crows_AuraScript)
bool Validate(SpellInfo const *) OVERRIDE
void HandleEffectPeriodic(AuraEffect const *)
spell_hun_a_murder_of_crows()
AuraScript * GetAuraScript() const OVERRIDE
PrepareSpellScript(spell_hun_chimera_shot_SpellScript)
void HandleScriptEffect(SpellEffIndex)
bool Validate(SpellInfo const *) OVERRIDE
SpellScript * GetSpellScript() const OVERRIDE
void HandleScriptEffect(SpellEffIndex)
bool Validate(SpellInfo const *) OVERRIDE
PrepareSpellScript(spell_hun_cobra_shot_SpellScript)
SpellScript * GetSpellScript() const OVERRIDE
void HandleEffectCalcSpellMod(AuraEffect const *aurEff, SpellModifier *&spellMod)
PrepareAuraScript(spell_hun_fire_AuraScript)
AuraScript * GetAuraScript() const OVERRIDE
PrepareAuraScript(spell_hun_improved_serpent_sting_AuraScript)
void HandleEffectCalcSpellMod(AuraEffect const *aurEff, SpellModifier *&spellMod)
AuraScript * GetAuraScript() const OVERRIDE
spell_hun_improved_serpent_sting()
PrepareSpellScript(spell_hun_invigoration_SpellScript)
void HandleScriptEffect(SpellEffIndex)
bool Validate(SpellInfo const *) OVERRIDE
SpellScript * GetSpellScript() const OVERRIDE
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *) OVERRIDE
PrepareSpellScript(spell_hun_last_stand_pet_SpellScript)
spell_hun_last_stand_pet()
SpellScript * GetSpellScript() const OVERRIDE
void HandleScriptEffect(SpellEffIndex)
void HandleDummy(SpellEffIndex)
bool Validate(SpellInfo const *spellInfo) OVERRIDE
PrepareSpellScript(spell_hun_masters_call_SpellScript)
SpellScript * GetSpellScript() const OVERRIDE
bool Validate(SpellInfo const *) OVERRIDE
PrepareAuraScript(spell_hun_misdirection_AuraScript)
void OnRemove(AuraEffect const *, AuraEffectHandleModes)
bool CheckProc(ProcEventInfo &)
void HandleProc(AuraEffect const *aurEff, ProcEventInfo &)
PrepareAuraScript(spell_hun_misdirection_proc_AuraScript)
void OnRemove(AuraEffect const *, AuraEffectHandleModes)
spell_hun_misdirection_proc()
AuraScript * GetAuraScript() const OVERRIDE
AuraScript * GetAuraScript() const OVERRIDE
SpellCastResult CheckIfCorpseNear()
bool Validate(SpellInfo const *) OVERRIDE
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_hun_pet_carrion_feeder_SpellScript)
spell_hun_pet_carrion_feeder()
SpellScript * GetSpellScript() const OVERRIDE
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *) OVERRIDE
PrepareSpellScript(spell_hun_pet_heart_of_the_phoenix_SpellScript)
SpellScript * GetSpellScript() const OVERRIDE
spell_hun_pet_heart_of_the_phoenix()
PrepareAuraScript(spell_hun_ready_set_aim_AuraScript)
void OnApply(AuraEffect const *aurEff, AuraEffectHandleModes)
bool Validate(SpellInfo const *) OVERRIDE
AuraScript * GetAuraScript() const OVERRIDE
spell_hun_ready_set_aim()
void HandleDummy(SpellEffIndex)
PrepareSpellScript(spell_hun_scatter_shot_SpellScript)
SpellScript * GetSpellScript() const OVERRIDE
PrepareSpellScript(spell_hun_steady_shot_SpellScript)
bool Validate(SpellInfo const *) OVERRIDE
SpellScript * GetSpellScript() const OVERRIDE
PrepareSpellScript(spell_hun_tame_beast_SpellScript)
SpellCastResult CheckCast()
SpellScript * GetSpellScript() const OVERRIDE
PrepareAuraScript(spell_hun_thrill_of_the_hunt_AuraScript)
bool Validate(SpellInfo const *) OVERRIDE
void HandleEffectProc(AuraEffect const *aurEff, ProcEventInfo &eventInfo)
AuraScript * GetAuraScript() const OVERRIDE
spell_hun_thrill_of_the_hunt()
@ SPELL_HUNTER_INVIGORATION_TRIGGERED
@ SPELL_HUNTER_PET_HEART_OF_THE_PHOENIX
@ SPELL_HUNTER_GENERIC_ENERGIZE_FOCUS
@ SPELL_HUNTER_STEADY_SHOT_FOCUS
@ SPELL_HUNTER_MISDIRECTION_PROC
@ SPELL_HUNTER_SERPENT_STING
@ SPELL_HUNTER_LOCK_AND_LOAD
@ SPELL_HUNTER_MASTERS_CALL_TRIGGERED
@ SPELL_HUNTER_THRILL_OF_THE_HUNT
@ SPELL_HUNTER_PET_HEART_OF_THE_PHOENIX_DEBUFF
@ SPELL_HUNTER_PET_HEART_OF_THE_PHOENIX_TRIGGERED
@ SPELL_HUNTER_DELAYED_CROW2
@ SPELL_HUNTER_CHIMERA_SHOT_HEAL
@ SPELL_HUNTER_A_MURDER_OF_CROWS
@ SPELL_HUNTER_CROW_TRIGGER
@ SPELL_HUNTER_PET_CARRION_FEEDER_TRIGGERED
@ SPELL_HUNTER_PET_LAST_STAND_TRIGGERED
@ SPELL_HUNTER_BESTIAL_WRATH
@ SPELL_HUNTER_DELAYED_CROW
void AddSC_hunter_spell_scripts()