mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Fix TODO comments
This commit is contained in:
parent
e5e14adb51
commit
ecb2bcb2db
@ -294,10 +294,10 @@ bool CGameInfoCallback::isTileGuardedAfterDimensionDoorUse(int3 tile, const CGHe
|
||||
|
||||
if(isVisible(tile))
|
||||
canAccessInfo = true;
|
||||
else if(VLC->settings()->getBoolean(EGameSettings::DIMENSION_DOOR_TRIGGERS_GUARDS) //TODO: check if available casts > 0
|
||||
else if(VLC->settings()->getBoolean(EGameSettings::DIMENSION_DOOR_TRIGGERS_GUARDS)
|
||||
&& isInScreenRange(castingHero->getSightCenter(), tile)
|
||||
&& castingHero->canCastThisSpell(static_cast<SpellID>(SpellID::DIMENSION_DOOR).toSpell()))
|
||||
canAccessInfo = true;
|
||||
canAccessInfo = true; //TODO: check if available casts > 0, before adding that check make dimension door daily limit popup trigger on spell pick
|
||||
|
||||
if(canAccessInfo)
|
||||
return !gs->guardingCreatures(tile).empty();
|
||||
@ -540,8 +540,8 @@ const TerrainTile * CGameInfoCallback::getTileForDimensionDoor(int3 tile, const
|
||||
if(!allowOnlyToUncoveredTiles)
|
||||
{
|
||||
if(castingHero->canCastThisSpell(static_cast<SpellID>(SpellID::DIMENSION_DOOR).toSpell())
|
||||
&& isInScreenRange(castingHero->getSightCenter(), tile)) //TODO: check if > 0 casts left
|
||||
{
|
||||
&& isInScreenRange(castingHero->getSightCenter(), tile))
|
||||
{ //TODO: check if available casts > 0, before adding that check make dimension door daily limit popup trigger on spell pick
|
||||
//we are allowed to get basic blocked/water invisible nearby tile date when casting DD spell
|
||||
TerrainTile targetTile = gs->map->getTile(tile);
|
||||
auto obfuscatedTile = std::make_shared<TerrainTile>();
|
||||
|
Loading…
Reference in New Issue
Block a user