mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Misc: duc tape build
This commit is contained in:
@@ -684,8 +684,7 @@ public:
|
||||
if (handler->GetSession())
|
||||
{
|
||||
int32 maxLevel = 0;
|
||||
if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(questTemplatePair.second.GetContentTuningId(),
|
||||
handler->GetSession()->GetPlayer()->m_playerData->CtrOptions->ContentTuningConditionMask))
|
||||
if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(questTemplatePair.second.GetContentTuningId()))
|
||||
maxLevel = questLevels->MaxLevel;
|
||||
|
||||
int32 scalingFactionGroup = 0;
|
||||
@@ -744,8 +743,7 @@ public:
|
||||
if (handler->GetSession())
|
||||
{
|
||||
int32 maxLevel = 0;
|
||||
if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(questTemplatePair.second.GetContentTuningId(),
|
||||
handler->GetSession()->GetPlayer()->m_playerData->CtrOptions->ContentTuningConditionMask))
|
||||
if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(questTemplatePair.second.GetContentTuningId()))
|
||||
maxLevel = questLevels->MaxLevel;
|
||||
|
||||
int32 scalingFactionGroup = 0;
|
||||
@@ -814,8 +812,7 @@ public:
|
||||
if (handler->GetSession())
|
||||
{
|
||||
int32 maxLevel = 0;
|
||||
if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(quest->GetContentTuningId(),
|
||||
handler->GetSession()->GetPlayer()->m_playerData->CtrOptions->ContentTuningConditionMask))
|
||||
if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(quest->GetContentTuningId()))
|
||||
maxLevel = questLevels->MaxLevel;
|
||||
|
||||
int32 scalingFactionGroup = 0;
|
||||
|
||||
@@ -581,8 +581,6 @@ class spell_item_heart_of_azeroth : public AuraScript
|
||||
{
|
||||
if (Player* target = GetTarget()->ToPlayer())
|
||||
{
|
||||
target->ApplyAllAzeriteEmpoweredItemMods(equipped);
|
||||
|
||||
WorldPackets::Azerite::PlayerAzeriteItemEquippedStatusChanged statusChanged;
|
||||
statusChanged.IsHeartEquipped = equipped;
|
||||
target->SendDirectMessage(statusChanged.Write());
|
||||
|
||||
@@ -5003,7 +5003,7 @@ class spell_gen_skinning : public SpellScript
|
||||
if (!contentTuning)
|
||||
return;
|
||||
|
||||
uint32 skinningSkill = player->GetProfessionSkillForExp(SKILL_SKINNING, contentTuning->ExpansionID);
|
||||
uint32 skinningSkill = player->GetProfessionSkillForExp(SKILL_SKINNING, 0);
|
||||
if (!skinningSkill)
|
||||
return;
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ class spell_warl_chaos_bolt : public SpellScript
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
SetHitDamage(GetHitDamage() + CalculatePct(GetHitDamage(), GetCaster()->ToPlayer()->m_activePlayerData->SpellCritPercentage));
|
||||
SetHitDamage(GetHitDamage() + CalculatePct(GetHitDamage(), GetCaster()->ToPlayer()->m_activePlayerData->SpellCritPercentage[0]));
|
||||
}
|
||||
|
||||
void CalcCritChance(Unit const* /*victim*/, float& critChance)
|
||||
|
||||
Reference in New Issue
Block a user