Some cleanup of CanSeeOrDetect code.

This commit is contained in:
megamage
2011-10-13 13:26:27 -04:00
parent dc2bdb8e13
commit 5912e2444d
10 changed files with 25 additions and 42 deletions

View File

@@ -270,7 +270,7 @@ class spell_garfrost_permafrost : public SpellScriptLoader
{
for (std::list<GameObject*>::const_iterator itr = blockList.begin(); itr != blockList.end(); ++itr)
{
if ((*itr)->isVisibleForInState(target))
if (!(*itr)->IsInvisibleDueToDespawn())
{
if ((*itr)->IsInBetween(caster, target, 4.0f))
{