mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[11610] Select proper spell difficulty subtitution.
Fix mostly affect cases when absent 25-man difficulties spell version. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
753b0cd969
commit
3a60c4ae3b
4 changed files with 10 additions and 8 deletions
|
|
@ -319,7 +319,7 @@ Spell::Spell( Unit* caster, SpellEntry const *info, bool triggered, ObjectGuid o
|
|||
|
||||
if (info->SpellDifficultyId && caster->GetTypeId() != TYPEID_PLAYER && caster->IsInWorld() && caster->GetMap()->IsDungeon())
|
||||
{
|
||||
if (SpellEntry const* spellEntry = GetSpellEntryByDifficulty(info->SpellDifficultyId, caster->GetMap()->GetDifficulty()))
|
||||
if (SpellEntry const* spellEntry = GetSpellEntryByDifficulty(info->SpellDifficultyId, caster->GetMap()->GetDifficulty(), caster->GetMap()->IsRaid()))
|
||||
m_spellInfo = spellEntry;
|
||||
else
|
||||
m_spellInfo = info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue