1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Disable the click on enemies even when visible in stat (difficult skill)

It concerns issue #22.
This commit is contained in:
Mathieu Schroeter 2017-09-22 12:45:08 +02:00
parent 74ba9ea8f8
commit 07f13f6059

View File

@ -1020,6 +1020,14 @@ CDecor::StatisticDetect (Point pos)
if (rank >= STATNB)
return -1;
auto pStatistic = StatisticGet (rank);
if (
this->GetSkill () >= 1 && pStatistic->perso >= 0 &&
(pStatistic->perso != 0 && pStatistic->perso != 8))
{
return -1;
}
return rank;
}