Some cleanup of CanSeeOrDetect code.
This commit is contained in:
1 parent
dc2bdb8e13
commit
5912e2444d
10 files changed
+25
-42
No files matched your search
@@ -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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user