Hey.
In WarMode in TFS only Partners (Friends) have green skulls near emblem but enemies doesn't have.
How to Fix?
I thing this source code must be edit:
Any ideas to edit?
In WarMode in TFS only Partners (Friends) have green skulls near emblem but enemies doesn't have.
How to Fix?
I thing this source code must be edit:
Code:
Skulls_t Player::getSkullType(const Creature* creature) const
{
if(const Player* player = creature->getPlayer())
{
if(g_game.getWorldType() != WORLDTYPE_OPEN)
return SKULL_NONE;
if((player == this || (skull != SKULL_NONE && player->getSkull() < SKULL_RED)) && player->hasAttacked(this)
#ifdef __WAR_SYSTEM__
&& !player->isEnemy(this, false)
#endif
)
return SKULL_YELLOW;
if(player->getSkull() == SKULL_NONE &&
#ifndef __WAR_SYSTEM__
isPartner(player) &&
#else
(isPartner(player) || isAlly(player)) &&
#endif
g_game.getWorldType() != WORLDTYPE_OPTIONAL)
return SKULL_GREEN;
}
return Creature::getSkullType(creature);
}
Any ideas to edit?