TrinityCore
SpellValue Struct Reference

#include <Spell.h>

Public Member Functions

 SpellValue (SpellInfo const *proto, WorldObject const *caster)
 

Public Attributes

int32 EffectBasePoints [MAX_SPELL_EFFECTS]
 
uint32 CustomBasePointsMask
 
uint32 MaxAffectedTargets
 
float RadiusMod
 
int32 AuraStackAmount
 
float DurationMul
 
float CriticalChance
 
Optional< int32Duration
 

Constructor & Destructor Documentation

◆ SpellValue()

SpellValue::SpellValue ( SpellInfo const *  proto,
WorldObject const *  caster 
)
explicit
464 {
465  memset(EffectBasePoints, 0, sizeof(EffectBasePoints));
466  for (SpellEffectInfo const& spellEffectInfo : proto->GetEffects())
467  EffectBasePoints[spellEffectInfo.EffectIndex] = spellEffectInfo.CalcBaseValue(caster, nullptr, 0, -1);
468 
470  MaxAffectedTargets = proto->MaxAffectedTargets;
471  RadiusMod = 1.0f;
472  AuraStackAmount = 1;
473  CriticalChance = 0.0f;
474  DurationMul = 1;
475 }
float CriticalChance
Definition: Spell.h:212
uint32 MaxAffectedTargets
Definition: Spell.h:208
int32 AuraStackAmount
Definition: Spell.h:210
Definition: SpellInfo.h:233
uint32 CustomBasePointsMask
Definition: Spell.h:207
float RadiusMod
Definition: Spell.h:209
int32 EffectBasePoints[MAX_SPELL_EFFECTS]
Definition: Spell.h:206
float DurationMul
Definition: Spell.h:211
+ Here is the call graph for this function:

Member Data Documentation

◆ AuraStackAmount

int32 SpellValue::AuraStackAmount

◆ CriticalChance

float SpellValue::CriticalChance

◆ CustomBasePointsMask

uint32 SpellValue::CustomBasePointsMask

◆ Duration

Optional<int32> SpellValue::Duration

◆ DurationMul

float SpellValue::DurationMul

◆ EffectBasePoints

int32 SpellValue::EffectBasePoints[MAX_SPELL_EFFECTS]

◆ MaxAffectedTargets

uint32 SpellValue::MaxAffectedTargets

◆ RadiusMod

float SpellValue::RadiusMod

The documentation for this struct was generated from the following files: