mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Some cleanup of CanSeeOrDetect code.
This commit is contained in:
@@ -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