Core/Player: allow dead players to see dead creatures near their corpses
--HG-- branch : trunk
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user