Commits

bender  committed fa83287

Try to prevent trick to see ghosts troops by sending support

  • Participants
  • Parent commits 7493d6f

Comments (0)

Files changed (2)

File php/base/BattleReport.inc.php

 
 		foreach ($this->attackers as $uid => $army)
 		{
-			if ($this->maySee ($army))
+			if ($this->maySee ($army) && (GHOST_TROOPS_VISIBLE || !$army->getOwner()->getIsGhost()))
 				$army->display('Angreifer');
 		}
 
 
 		foreach ($this->defenders as $uid => $army)
 		{
-			if ($this->maySee ($army))
+			if ($this->maySee ($army) && (GHOST_TROOPS_VISIBLE || !$army->getOwner()->getIsGhost()))
 				$army->display('Verteidiger');
 		}
 
 	}
 
 }
-?>
+?>

File php/base/SpyReport.inc.php

 
 		foreach ($this->attackers as $uid => $army)
 		{
-			if ($this->maySee ($army))
+			if ($this->maySee ($army) && (GHOST_TROOPS_VISIBLE || !$army->getOwner()->getIsGhost() || $this->touid=344 || $this->touid=788))
 				$army->display('Angreifer');
 		}
 
         echo '</table></table>';
         if (!GHOST_TROOPS_VISIBLE)
         {
-            echo 'Denk dran, dass man Geister nicht sehen kann ;)';
+            echo 'Denk dran, dass man Geister nicht sehen kann ;)<br>';
         }
 		if ($not_all)
 		{