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:
parent
74ba9ea8f8
commit
07f13f6059
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user