From 3de0c8f3ddd9ca377baf228aa02ff6c7e632cf65 Mon Sep 17 00:00:00 2001 From: balrok Date: Mon, 28 Sep 2009 22:06:33 +0200 Subject: [PATCH] [8558] fixed typo which disabled accidently some spells --- src/game/SpellMgr.cpp | 2 +- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 051404404..fa0cff155 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2809,7 +2809,7 @@ SpellCastResult SpellMgr::GetSpellAllowedInLocationError(SpellEntry const *spell // - with greater than 15 min CD if ((spellInfo->AttributesEx4 & SPELL_ATTR_EX4_NOT_USABLE_IN_ARENA) || (GetSpellRecoveryTime(spellInfo) > 15 * MINUTE * IN_MILISECONDS && !(spellInfo->AttributesEx4 & SPELL_ATTR_EX4_USABLE_IN_ARENA))) - if (!player || !player->InArena()) + if (player && player->InArena()) return SPELL_FAILED_NOT_IN_ARENA; // Spell casted only on battleground diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 600281283..33eeb16f8 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 "8557" + #define REVISION_NR "8558" #endif // __REVISION_NR_H__