48 Health = unitCaster->GetHealth();
51 Armor = unitCaster->GetArmor();
57 Powers primaryPowerType = unitCaster->GetPowerType();
58 bool primaryPowerAdded =
false;
62 if (cost.Power == primaryPowerType)
63 primaryPowerAdded =
true;
66 if (!primaryPowerAdded)
71template<
class T,
class U>
78bool ContentTuningParams::GenerateDataForUnits<Creature, Player>(
Creature* attacker,
Player* target)
100bool ContentTuningParams::GenerateDataForUnits<Player, Creature>(
Player* attacker,
Creature* target)
122bool ContentTuningParams::GenerateDataForUnits<Creature, Creature>(
Creature* attacker,
Creature* target)
139bool ContentTuningParams::GenerateDataForUnits<Unit, Unit>(
Unit* attacker,
Unit* target)
147 if (creatureTarget->HasScalableLevels())
155 if (creatureAttacker->HasScalableLevels())
160 if (creatureAttacker->HasScalableLevels() || creatureTarget->HasScalableLevels())
177 data << BitsSize<9>(spellCastLogData.
PowerData);
182 data <<
int8(powerData.PowerType);
183 data <<
int32(powerData.Amount);
184 data <<
int32(powerData.Cost);
206 data << Bits<4>(contentTuningParams.
Type);
DB2Storage< ContentTuningEntry > sContentTuningStore("ContentTuning.db2", &ContentTuningLoadInfo::Instance)
@ SPELL_SCHOOL_MASK_SPELL
@ CR_VERSATILITY_DAMAGE_DONE
CreatureTemplate const * GetCreatureTemplate() const
bool HasScalableLevels() const
Difficulty GetDifficultyID() const
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
float PlayerPrimaryStatToExpectedRatio
int32 ScalingHealthPrimaryStatCurveID
int32 TargetContentTuningID
@ TYPE_CREATURE_TO_PLAYER_DAMAGE
@ TYPE_CREATURE_TO_CREATURE_DAMAGE
@ TYPE_PLAYER_TO_CREATURE_DAMAGE
int8 TargetScalingLevelDelta
int32 PlayerContentTuningID
int32 ScalingHealthItemLevelCurveID
int32 TargetHealingContentTuningID
bool GenerateDataForUnits(T *attacker, U *target)
std::vector< SpellLogPowerData > PowerData
void Initialize(Unit const *unit)
int32 SpellXSpellVisualID