Skip to content

Commit

Permalink
NPCBots: Do not lookup spell difficulty override for bots' spells
Browse files Browse the repository at this point in the history
  • Loading branch information
trickerer committed Apr 6, 2024
1 parent d99a35f commit 7c73f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ Spell::Spell(WorldObject* caster, SpellInfo const* info, TriggerCastFlags trigge
/*
m_spellInfo(sSpellMgr->GetSpellForDifficultyFromSpell(info, caster)),
*/
m_spellInfo(sSpellMgr->GetSpellForDifficultyFromSpell(info, caster)->TryGetSpellInfoOverride(caster)),
m_spellInfo((caster->IsNPCBot() ? info : sSpellMgr->GetSpellForDifficultyFromSpell(info, caster))->TryGetSpellInfoOverride(caster)),
//end npcbot
m_caster((info->HasAttribute(SPELL_ATTR6_CAST_BY_CHARMER) && caster->GetCharmerOrOwner()) ? caster->GetCharmerOrOwner() : caster)
, m_spellValue(new SpellValue(m_spellInfo)), _spellEvent(nullptr)
Expand Down

0 comments on commit 7c73f78

Please sign in to comment.