Core/GameObjects: Implemented per player gameobject state and visibility for looted non-consumable chests

This commit is contained in:
Shauren
2022-10-21 22:11:00 +02:00
parent 43ac108a52
commit 879c0cccfc
15 changed files with 161 additions and 17 deletions

View File

@@ -537,7 +537,7 @@ class BehindObjectCheck
bool operator()(WorldObject* unit)
{
for (std::list<GameObject*>::const_iterator itr = objectList.begin(); itr != objectList.end(); ++itr)
if (!(*itr)->IsInvisibleDueToDespawn() && (*itr)->IsInBetween(caster, unit, 1.5f))
if (!(*itr)->IsInvisibleDueToDespawn(unit) && (*itr)->IsInBetween(caster, unit, 1.5f))
return true;
return false;
}

View File

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