AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
spell_putricide_slime_puddle Class Reference
Inheritance diagram for spell_putricide_slime_puddle:
SpellScript _SpellScript

Private Member Functions

 PrepareSpellScript (spell_putricide_slime_puddle)
 
void ScaleRange (std::list< WorldObject * > &targets)
 
void HandleScript (SpellEffIndex)
 
void Register () override
 

Additional Inherited Members

- Public Member Functions inherited from SpellScript
bool _Validate (SpellInfo const *entry) override
 
bool _Load (Spell *spell)
 
void _InitHit ()
 
bool _IsEffectPrevented (SpellEffIndex effIndex)
 
bool _IsDefaultEffectPrevented (SpellEffIndex effIndex)
 
void _PrepareScriptCall (SpellScriptHookType hookType)
 
void _FinishScriptCall ()
 
bool IsInCheckCastHook () const
 
bool IsInTargetHook () const
 
bool IsInHitPhase () const
 
bool IsInEffectHook () const
 
UnitGetCaster ()
 
UnitGetOriginalCaster ()
 
SpellInfo const * GetSpellInfo ()
 
SpellValue const * GetSpellValue ()
 
WorldLocation const * GetExplTargetDest ()
 
void SetExplTargetDest (WorldLocation &loc)
 
WorldObjectGetExplTargetWorldObject ()
 
UnitGetExplTargetUnit ()
 
GameObjectGetExplTargetGObj ()
 
ItemGetExplTargetItem ()
 
UnitGetHitUnit ()
 
CreatureGetHitCreature ()
 
PlayerGetHitPlayer ()
 
ItemGetHitItem ()
 
GameObjectGetHitGObj ()
 
WorldLocationGetHitDest ()
 
int32 GetHitDamage ()
 
void SetHitDamage (int32 damage)
 
void PreventHitDamage ()
 
int32 GetHitHeal ()
 
void SetHitHeal (int32 heal)
 
void PreventHitHeal ()
 
SpellGetSpell ()
 
AuraGetHitAura ()
 
void PreventHitAura ()
 
void PreventHitEffect (SpellEffIndex effIndex)
 
void PreventHitDefaultEffect (SpellEffIndex effIndex)
 
int32 GetEffectValue () const
 
void SetEffectValue (int32 value)
 
ItemGetCastItem ()
 
void CreateItem (uint32 effIndex, uint32 itemId)
 
SpellInfo const * GetTriggeringSpell ()
 
void FinishCast (SpellCastResult result)
 
void Cancel ()
 
void SetCustomCastResultMessage (SpellCustomErrors result)
 
- Public Member Functions inherited from _SpellScript
 _SpellScript ()
 
virtual ~_SpellScript ()
 
virtual void _Register ()
 
virtual void _Unload ()
 
virtual void _Init (std::string const *scriptname, uint32 spellId)
 
std::string const * _GetScriptName () const
 
virtual bool Validate (SpellInfo const *)
 
virtual bool Load ()
 
virtual void Unload ()
 
- Static Public Member Functions inherited from _SpellScript
static bool ValidateSpellInfo (std::initializer_list< uint32 > spellIds)
 
template<class T >
static bool ValidateSpellInfo (T const &spellIds)
 
- Public Attributes inherited from SpellScript
HookList< CastHandlerBeforeCast
 
HookList< CastHandlerOnCast
 
HookList< CastHandlerAfterCast
 
HookList< CheckCastHandlerOnCheckCast
 
HookList< EffectHandlerOnEffectLaunch
 
HookList< EffectHandlerOnEffectLaunchTarget
 
HookList< EffectHandlerOnEffectHit
 
HookList< EffectHandlerOnEffectHitTarget
 
HookList< BeforeHitHandlerBeforeHit
 
HookList< HitHandlerOnHit
 
HookList< HitHandlerAfterHit
 
HookList< ObjectAreaTargetSelectHandlerOnObjectAreaTargetSelect
 
HookList< ObjectTargetSelectHandlerOnObjectTargetSelect
 
HookList< DestinationTargetSelectHandlerOnDestinationTargetSelect
 
- Protected Attributes inherited from _SpellScript
uint8 m_currentScriptState
 
std::string const * m_scriptName
 
uint32 m_scriptSpellId
 

Detailed Description

Member Function Documentation

◆ HandleScript()

void spell_putricide_slime_puddle::HandleScript ( SpellEffIndex  )
inlineprivate
887 {
888 SpellInfo const* s1 = sSpellMgr->GetSpellInfo(70346);
889 SpellInfo const* s2 = sSpellMgr->GetSpellInfo(72456);
890 if (s1 && s2)
891 if (Unit* target = GetHitUnit())
892 {
895 }
896 }
#define MAX_EFFECT_MASK
Definition DBCStructure.h:1637
#define sSpellMgr
Definition SpellMgr.h:825
static Aura * TryRefreshStackOrCreate(SpellInfo const *spellproto, uint8 tryEffMask, WorldObject *owner, Unit *caster, int32 *baseAmount=nullptr, Item *castItem=nullptr, ObjectGuid casterGUID=ObjectGuid::Empty, bool *refresh=nullptr, bool periodicReset=false)
Definition SpellAuras.cpp:326
Definition SpellInfo.h:316
Unit * GetHitUnit()
Definition SpellScript.cpp:448
Definition Unit.h:636

References SpellScript::GetHitUnit(), MAX_EFFECT_MASK, sSpellMgr, and Aura::TryRefreshStackOrCreate().

Referenced by Register().

◆ PrepareSpellScript()

spell_putricide_slime_puddle::PrepareSpellScript ( spell_putricide_slime_puddle  )
private

◆ Register()

void spell_putricide_slime_puddle::Register ( )
inlineoverrideprivatevirtual

Implements _SpellScript.

899 {
903 }
@ EFFECT_1
Definition SharedDefines.h:32
@ EFFECT_0
Definition SharedDefines.h:31
@ SPELL_EFFECT_APPLY_AURA
Definition SharedDefines.h:784
@ TARGET_UNIT_DEST_AREA_ENEMY
Definition SharedDefines.h:1421
@ TARGET_UNIT_DEST_AREA_ENTRY
Definition SharedDefines.h:1417
#define SpellEffectFn(F, I, N)
Definition SpellScript.h:337
#define SpellObjectAreaTargetSelectFn(F, I, N)
Definition SpellScript.h:354
HookList< EffectHandler > OnEffectHitTarget
Definition SpellScript.h:336
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
Definition SpellScript.h:353
void ScaleRange(std::list< WorldObject * > &targets)
Definition boss_professor_putricide.cpp:880
void HandleScript(SpellEffIndex)
Definition boss_professor_putricide.cpp:886

References EFFECT_0, EFFECT_1, HandleScript(), SpellScript::OnEffectHitTarget, SpellScript::OnObjectAreaTargetSelect, ScaleRange(), SPELL_EFFECT_APPLY_AURA, SpellEffectFn, SpellObjectAreaTargetSelectFn, TARGET_UNIT_DEST_AREA_ENEMY, and TARGET_UNIT_DEST_AREA_ENTRY.

◆ ScaleRange()

void spell_putricide_slime_puddle::ScaleRange ( std::list< WorldObject * > &  targets)
inlineprivate
881 {
882 targets.remove_if(Acore::AllWorldObjectsInExactRange(GetCaster(), 2.5f * GetCaster()->GetFloatValue(OBJECT_FIELD_SCALE_X), true));
883 }
@ OBJECT_FIELD_SCALE_X
Definition UpdateFields.h:28
Definition GridNotifiers.h:1647
Unit * GetCaster()
Definition SpellScript.cpp:401

References SpellScript::GetCaster(), and OBJECT_FIELD_SCALE_X.

Referenced by Register().


The documentation for this class was generated from the following file: