Skip to content

Commit

Permalink
[11085] Also disable related cast check when vmap.enableIndoorCheck d…
Browse files Browse the repository at this point in the history
…isabled.

Note: spells are also blocked at client side, so they can only be used with .cast command
  • Loading branch information
Lynx3d committed Jan 31, 2011
1 parent f31e8cc commit a3c2142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/game/Spell.cpp
Expand Up @@ -4381,6 +4381,7 @@ SpellCastResult Spell::CheckCast(bool strict)
return SPELL_FAILED_AFFECTING_COMBAT;

if (m_caster->GetTypeId() == TYPEID_PLAYER && !((Player*)m_caster)->isGameMaster() &&
sWorld.getConfig(CONFIG_BOOL_VMAP_INDOOR_CHECK) &&
VMAP::VMapFactory::createOrGetVMapManager()->isLineOfSightCalcEnabled())
{
if (m_spellInfo->Attributes & SPELL_ATTR_OUTDOORS_ONLY &&
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11084"
#define REVISION_NR "11085"
#endif // __REVISION_NR_H__

0 comments on commit a3c2142

Please sign in to comment.