44 Health = unitCaster->GetHealth();
47 Armor = unitCaster->GetArmor();
48 Powers primaryPowerType = unitCaster->GetPowerType();
49 bool primaryPowerAdded =
false;
53 if (cost.Power == primaryPowerType)
54 primaryPowerAdded =
true;
57 if (!primaryPowerAdded)
62template<
class T,
class U>
69bool ContentTuningParams::GenerateDataForUnits<Creature, Player>(
Creature* attacker,
Player* target)
90bool ContentTuningParams::GenerateDataForUnits<Player, Creature>(
Player* attacker,
Creature* target)
111bool ContentTuningParams::GenerateDataForUnits<Creature, Creature>(
Creature* attacker,
Creature* target)
128bool ContentTuningParams::GenerateDataForUnits<Unit, Unit>(
Unit* attacker,
Unit* target)
136 if (creatureTarget->HasScalableLevels())
144 if (creatureAttacker->HasScalableLevels())
149 if (creatureAttacker->HasScalableLevels() || creatureTarget->HasScalableLevels())
165 data << BitsSize<9>(spellCastLogData.
PowerData);
DB2Storage< ContentTuningEntry > sContentTuningStore("ContentTuning.db2", &ContentTuningLoadInfo::Instance)
@ SPELL_SCHOOL_MASK_SPELL
void WriteBits(uint64 value, int32 bits)
CreatureTemplate const * GetCreatureTemplate() const
bool HasScalableLevels() const
Difficulty GetDifficultyID() const
static Unit * ToUnit(Object *o)
UF::UpdateField< UF::ActivePlayerData, int32(WowCS::EntityFragment::CGObject), TYPEID_ACTIVE_PLAYER > m_activePlayerData
float GetAverageItemLevel() const
WorldObject * GetCaster() const
std::vector< SpellPowerCost > const & GetPowerCost() const
Powers GetPowerType() const
UF::UpdateField< UF::UnitData, int32(WowCS::EntityFragment::CGObject), TYPEID_UNIT > m_unitData
int32 GetPower(Powers power) const
float GetTotalAttackPowerValue(WeaponAttackType attType, bool includeWeapon=true) const
int32 SpellBaseDamageBonusDone(SpellSchoolMask schoolMask) const
ByteBuffer & WriteLogData()
WorldPacket _fullLogPacket
Spells::SpellCastLogData LogData
ByteBuffer & operator>>(ByteBuffer &data, SpellCastVisual &visual)
ByteBuffer & operator<<(ByteBuffer &data, SpellCastLogData const &spellCastLogData)
int32 HealthScalingExpansion
CreatureDifficulty const * GetDifficulty(Difficulty difficulty) const
int32 TargetContentTuningID
@ TYPE_CREATURE_TO_PLAYER_DAMAGE
@ TYPE_CREATURE_TO_CREATURE_DAMAGE
@ TYPE_PLAYER_TO_CREATURE_DAMAGE
int8 TargetScalingLevelDelta
int32 PlayerContentTuningID
uint32 ScalingHealthItemLevelCurveID
bool GenerateDataForUnits(T *attacker, U *target)
std::vector< SpellLogPowerData > PowerData
void Initialize(Unit const *unit)
int32 SpellXSpellVisualID