Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[11841] Use difficulty selection also for player cast spells, example…

… 65686

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
  • Loading branch information...
commit 92279286e9571642a3ba1c82597327415272fc1a 1 parent 4dbc136
@Schmoozerd Schmoozerd authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  src/game/Spell.cpp
  2. +1 −1  src/shared/revision_nr.h
View
2  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;
View
2  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__

1 comment on commit 9227928

@SilverIce

thanks. always don't understand the sense of such stupid restrictions

Please sign in to comment.
Something went wrong with that request. Please try again.