TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SpellValue Struct Reference

#include <Spell.h>

Public Member Functions

 SpellValue (Difficulty diff, SpellInfo const *proto)
 

Public Attributes

int32 EffectBasePoints [MAX_SPELL_EFFECTS]
 
uint32 MaxAffectedTargets
 
float RadiusMod
 
uint8 AuraStackAmount
 

Constructor & Destructor Documentation

SpellValue::SpellValue ( Difficulty  diff,
SpellInfo const proto 
)
explicit
488 {
489  // todo 6.x
490  SpellEffectInfoVector effects = proto->GetEffectsForDifficulty(diff);
491  ASSERT(effects.size() <= MAX_SPELL_EFFECTS);
492  memset(EffectBasePoints, 0, sizeof(EffectBasePoints));
493  for (SpellEffectInfo const* effect : effects)
494  if (effect)
495  EffectBasePoints[effect->EffectIndex] = effect->BasePoints;
496 
497  MaxAffectedTargets = proto->MaxAffectedTargets;
498  RadiusMod = 1.0f;
499  AuraStackAmount = 1;
500 }
uint32 MaxAffectedTargets
Definition: Spell.h:269
uint8 AuraStackAmount
Definition: Spell.h:271
std::vector< SpellEffectInfo const * > SpellEffectInfoVector
Definition: SpellInfo.h:315
Definition: SpellInfo.h:238
float RadiusMod
Definition: Spell.h:270
#define ASSERT
Definition: Errors.h:55
#define MAX_SPELL_EFFECTS
Definition: DBCStructure.h:1026
int32 EffectBasePoints[MAX_SPELL_EFFECTS]
Definition: Spell.h:268

+ Here is the call graph for this function:

Member Data Documentation

uint8 SpellValue::AuraStackAmount
int32 SpellValue::EffectBasePoints[MAX_SPELL_EFFECTS]
uint32 SpellValue::MaxAffectedTargets
float SpellValue::RadiusMod

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