ClassFamilyMask const& SpellEntry::GetEffectSpellClassMask(SpellEffectIndex eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->EffectSpellClassMask;

    static ClassFamilyMask const emptyCFM;

    return emptyCFM;
}
uint32 const* SpellEntry::GetEffectSpellClassMask(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return &effectEntry->EffectSpellClassMask[0];
    return NULL;
}
float SpellEntry::GetEffectMultipleValue(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectMultipleValue();
    return NULL;
}
float SpellEntry::GetDmgMultiplier(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetDmgMultiplier();
    return NULL;
}
uint32 SpellEntry::GetEffectRadiusIndex(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectRadiusIndex();
    return NULL;
}
float SpellEntry::GetEffectRealPointsPerLevel(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectRealPointsPerLevel();
    return NULL;
}
float SpellEntry::GetEffectPointsPerComboPoint(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectPointsPerComboPoint();
    return NULL;
}
uint32 SpellEntry::GetEffectDieSides(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectDieSides();
    return NULL;
}
uint32 SpellEntry::GetEffectChainTarget(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectChainTarget();
    return NULL;
}
int32 SpellEntry::GetEffectMiscValueB(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectMiscValueB();
   return 0;
}
uint32 SpellEntry::GetEffectAmplitude(uint32 eff) const
{
   if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
       return effectEntry->GetEffectAmplitude();
   return 0;
}
uint32 SpellEntry::GetEffectTriggerSpell(uint32 eff) const
{
    if (SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->GetEffectTriggerSpell();
    return 0;
}
int32 SpellEntry::CalculateSimpleValue(uint32 eff) const
{
    if(SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->EffectBasePoints;
    return 0;
}
SpellEffectEntry const* SpellEntry::GetSpellEffect(uint32 eff) const
{
    return GetSpellEffectEntry(Id, eff);
}
Exemple #15
0
SpellEffectEntry const* SpellEntry::GetSpellEffect(SpellEffectIndex eff) const
{
    return GetSpellEffectEntry(Id, eff);
}
Exemple #16
0
int32 SpellEntry::CalculateSimpleValue(SpellEffectIndex eff) const
{
    if(SpellEffectEntry const* effectEntry = GetSpellEffectEntry(Id, eff))
        return effectEntry->CalculateSimpleValue();
    return 0;
}