mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Entities: Fix null-dereference crash
Closes #19191
(cherrypicked from d61e0f79c4)
This commit is contained in:
@@ -8054,7 +8054,7 @@ void Player::CastItemCombatSpell(DamageInfo const& damageInfo, Item* item, ItemT
|
||||
|
||||
// reduce effect values if enchant is limited
|
||||
CustomSpellValues values;
|
||||
if ((entry->AttributesMask & ENCHANT_PROC_ATTR_LIMIT_60) && target->GetLevelForTarget(this) > 60)
|
||||
if (entry && (entry->AttributesMask & ENCHANT_PROC_ATTR_LIMIT_60) && target->GetLevelForTarget(this) > 60)
|
||||
{
|
||||
int32 const lvlDifference = target->GetLevelForTarget(this) - 60;
|
||||
int32 const lvlPenaltyFactor = 4; // 4% lost effectiveness per level
|
||||
|
||||
Reference in New Issue
Block a user