Core/Player: allow dead players to see dead creatures near their corpses

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-09-14 02:57:53 +02:00
parent df9d62d2b1
commit 6bdfc77b42
@@ -1771,9 +1771,7 @@ bool Creature::IsVisibleInGridForPlayer(Player const* pl) const
return (isAlive() || m_deathTimer > 0 || (m_isDeadByDefault && m_deathState == CORPSE)); return (isAlive() || m_deathTimer > 0 || (m_isDeadByDefault && m_deathState == CORPSE));
} }
// Dead player see live creatures near own corpse // Dead player see creatures near own corpse
if (isAlive())
{
Corpse *corpse = pl->GetCorpse(); Corpse *corpse = pl->GetCorpse();
if (corpse) if (corpse)
{ {
@@ -1781,7 +1779,6 @@ bool Creature::IsVisibleInGridForPlayer(Player const* pl) const
if (corpse->IsWithinDistInMap(this,(20+25)*sWorld.getRate(RATE_CREATURE_AGGRO))) if (corpse->IsWithinDistInMap(this,(20+25)*sWorld.getRate(RATE_CREATURE_AGGRO)))
return true; return true;
} }
}
// Dead player see Spirit Healer or Spirit Guide // Dead player see Spirit Healer or Spirit Guide
if (isSpiritService()) if (isSpiritService())