AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SpellValue Struct Reference

#include "Spell.h"

Public Member Functions

 SpellValue (SpellInfo const *proto)
 

Public Attributes

int32 EffectBasePoints [MAX_SPELL_EFFECTS]
 
uint32 MaxAffectedTargets
 
float RadiusMod
 
uint8 AuraStackAmount
 
int32 AuraDuration
 
bool ForcedCritResult
 

Detailed Description

Constructor & Destructor Documentation

◆ SpellValue()

SpellValue::SpellValue ( SpellInfo const *  proto)
explicit
558{
559 for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i)
560 EffectBasePoints[i] = proto->Effects[i].BasePoints;
561 MaxAffectedTargets = proto->MaxAffectedTargets;
562 RadiusMod = 1.0f;
563 AuraStackAmount = 1;
564 AuraDuration = 0;
565 ForcedCritResult = false;
566}
std::uint32_t uint32
Definition: Define.h:107
#define MAX_SPELL_EFFECTS
Definition: DBCStructure.h:1637
float RadiusMod
Definition: Spell.h:215
bool ForcedCritResult
Definition: Spell.h:218
int32 EffectBasePoints[MAX_SPELL_EFFECTS]
Definition: Spell.h:213
uint32 MaxAffectedTargets
Definition: Spell.h:214
int32 AuraDuration
Definition: Spell.h:217
uint8 AuraStackAmount
Definition: Spell.h:216

References AuraDuration, AuraStackAmount, EffectBasePoints, SpellInfo::Effects, ForcedCritResult, MAX_SPELL_EFFECTS, MaxAffectedTargets, SpellInfo::MaxAffectedTargets, and RadiusMod.

Member Data Documentation

◆ AuraDuration

int32 SpellValue::AuraDuration

◆ AuraStackAmount

uint8 SpellValue::AuraStackAmount

◆ EffectBasePoints

◆ ForcedCritResult

bool SpellValue::ForcedCritResult

Referenced by Spell::SetSpellValue(), and SpellValue().

◆ MaxAffectedTargets

◆ RadiusMod