Swiftxd
Member
- Joined
- Apr 5, 2014
- Messages
- 85
- Reaction score
- 5
hello, have some way to who uses /ghost talkaction can be seen by party members too ?
i think its in player.cpp in this function: bool Player::canSeeCreature(const Creature* creature) const, but i failed to create. the closest i got is this :
if someone could help me ,i'll be glad
i think its in player.cpp in this function: bool Player::canSeeCreature(const Creature* creature) const, but i failed to create. the closest i got is this :
Code:
bool Player::canSeeCreature(const Creature* creature) const
{
if(creature == this)
return true;
if(const Player* player = creature->getPlayer())
return !player->isGhost() || (getAccess() > 2 && getGhostAccess() >= player->getGhostAccess());
return !creature->isInvisible() || canSeeInvisibility();
if(party)
party->isPlayerMember(const Player*)
return !creature->isInvisible() || canSeeInvisibility();
}
if someone could help me ,i'll be glad
Last edited: