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
 
uint32 MiscVal [MAX_SPELL_EFFECTS]
 

Detailed Description

Constructor & Destructor Documentation

◆ SpellValue()

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

References AuraDuration, AuraStackAmount, EffectBasePoints, SpellInfo::Effects, ForcedCritResult, MAX_SPELL_EFFECTS, MaxAffectedTargets, SpellInfo::MaxAffectedTargets, MiscVal, 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

◆ MiscVal

◆ RadiusMod