aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellInfo.cpp
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2023-11-28 02:00:51 +0100
committerOvahlord <dreadkiller@gmx.de>2023-11-28 02:00:51 +0100
commit00c1f57c8bcd22bbf202f921d9670b1af9c3b3fd (patch)
tree05e305cea0fb7a8f0075056f69e32a4e542f4153 /src/server/game/Spells/SpellInfo.cpp
parentbbb320f39013bb540d69a36fe7be72c1ac6ba9d3 (diff)
Core/Items: restore item random properties handling
Diffstat (limited to 'src/server/game/Spells/SpellInfo.cpp')
-rw-r--r--src/server/game/Spells/SpellInfo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp
index 581578ebc10..eba12d8a794 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -550,7 +550,7 @@ int32 SpellEffectInfo::CalcValue(WorldObject const* caster /*= nullptr*/, int32
return int32(round(value));
}
-int32 SpellEffectInfo::CalcBaseValue(WorldObject const* caster, Unit const* target, uint32 itemId, int32 itemLevel) const
+int32 SpellEffectInfo::CalcBaseValue(WorldObject const* caster, Unit const* target, uint32 itemId, int32 /*itemLevel*/) const
{
if (Scaling.Coefficient != 0.0f)
{
@@ -575,6 +575,7 @@ int32 SpellEffectInfo::CalcBaseValue(WorldObject const* caster, Unit const* targ
if (!Scaling.Class)
return 0;
+ /*
uint32 effectiveItemLevel = itemLevel != -1 ? uint32(itemLevel) : 1u;
if (_spellInfo->Scaling.ScalesFromItemLevel || _spellInfo->HasAttribute(SPELL_ATTR11_SCALES_WITH_ITEM_LEVEL))
{
@@ -594,6 +595,7 @@ int32 SpellEffectInfo::CalcBaseValue(WorldObject const* caster, Unit const* targ
}
else
value = GetSpellScalingColumnForClass(sSpellScalingGameTable.GetRow(level), Scaling.Class);
+ */
}
value *= Scaling.Coefficient;
@@ -4250,12 +4252,15 @@ inline float CalcPPMItemLevelMod(SpellProcsPerMinuteModEntry const* mod, int32 i
if (itemLevel == mod->Param)
return 0.0f;
+ /*
float itemLevelPoints = GetRandomPropertyPoints(itemLevel, ITEM_QUALITY_RARE, INVTYPE_CHEST, 0);
float basePoints = GetRandomPropertyPoints(mod->Param, ITEM_QUALITY_RARE, INVTYPE_CHEST, 0);
if (itemLevelPoints == basePoints)
return 0.0f;
return ((itemLevelPoints / basePoints) - 1.0f) * mod->Coeff;
+ */
+ return 0;
}
float SpellInfo::CalcProcPPM(Unit* caster, int32 itemLevel) const