#include "SpellScript.h"
◆ EffectHook()
_SpellScript::EffectHook::EffectHook |
( |
uint8 |
_effIndex | ) |
|
72{
73
76}
#define MAX_SPELL_EFFECTS
Definition DBCStructure.h:1636
#define ASSERT
Definition Errors.h:68
#define EFFECT_FIRST_FOUND
Definition SharedDefines.h:37
#define EFFECT_ALL
Definition SharedDefines.h:38
uint8 effIndex
Definition SpellScript.h:82
References ASSERT, EFFECT_ALL, EFFECT_FIRST_FOUND, effIndex, and MAX_SPELL_EFFECTS.
◆ ~EffectHook()
virtual _SpellScript::EffectHook::~EffectHook |
( |
| ) |
|
|
inlinevirtual |
◆ CheckEffect()
virtual bool _SpellScript::EffectHook::CheckEffect |
( |
SpellInfo const * |
spellInfo, |
|
|
uint8 |
effIndex |
|
) |
| |
|
pure virtual |
◆ EffIndexToString()
std::string _SpellScript::EffectHook::EffIndexToString |
( |
| ) |
|
105{
107 {
109 return "EFFECT_ALL";
111 return "EFFECT_FIRST_FOUND";
113 return "EFFECT_0";
115 return "EFFECT_1";
117 return "EFFECT_2";
118 }
119 return "Invalid Value";
120}
@ EFFECT_1
Definition SharedDefines.h:32
@ EFFECT_0
Definition SharedDefines.h:31
@ EFFECT_2
Definition SharedDefines.h:33
References EFFECT_0, EFFECT_1, EFFECT_2, EFFECT_ALL, and EFFECT_FIRST_FOUND.
◆ GetAffectedEffectsMask()
uint8 _SpellScript::EffectHook::GetAffectedEffectsMask |
( |
SpellInfo const * |
spellInfo | ) |
|
79{
82 {
84 {
86 return mask;
88 mask |= (
uint8)1 << i;
89 }
90 }
91 else
92 {
95 }
96 return mask;
97}
std::uint8_t uint8
Definition Define.h:109
virtual bool CheckEffect(SpellInfo const *spellInfo, uint8 effIndex)=0
References EFFECT_ALL, EFFECT_FIRST_FOUND, and MAX_SPELL_EFFECTS.
◆ IsEffectAffected()
bool _SpellScript::EffectHook::IsEffectAffected |
( |
SpellInfo const * |
spellInfo, |
|
|
uint8 |
effIndex |
|
) |
| |
100{
102}
uint8 GetAffectedEffectsMask(SpellInfo const *spellInfo)
Definition SpellScript.cpp:78
◆ effIndex
uint8 _SpellScript::EffectHook::effIndex |
|
protected |
The documentation for this class was generated from the following files: