From 35d2d4a3165192cec208074c44ffa08fb110f26e Mon Sep 17 00:00:00 2001 From: Schmoozerd Date: Sun, 6 Nov 2011 18:09:57 +0100 Subject: [PATCH] [11841] Use difficulty selection also for player cast spells, example 65686 Signed-off-by: Schmoozerd --- src/game/Spell.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index c6ea1dc8b..d61ed00f6 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -317,7 +317,7 @@ Spell::Spell( Unit* caster, SpellEntry const *info, bool triggered, ObjectGuid o MANGOS_ASSERT( caster != NULL && info != NULL ); MANGOS_ASSERT( info == sSpellStore.LookupEntry( info->Id ) && "`info` must be pointer to sSpellStore element"); - if (info->SpellDifficultyId && caster->GetTypeId() != TYPEID_PLAYER && caster->IsInWorld() && caster->GetMap()->IsDungeon()) + if (info->SpellDifficultyId && caster->IsInWorld() && caster->GetMap()->IsDungeon()) { if (SpellEntry const* spellEntry = GetSpellEntryByDifficulty(info->SpellDifficultyId, caster->GetMap()->GetDifficulty(), caster->GetMap()->IsRaid())) m_spellInfo = spellEntry; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 9bc84459f..f940b8f22 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11840" + #define REVISION_NR "11841" #endif // __REVISION_NR_H__