fix friendly targeting
This commit is contained in:
parent
7bc3e60fab
commit
d72118b157
@ -69,7 +69,7 @@ function GamePanel(props) {
|
||||
const now = Date.now();
|
||||
const end = Date.parse(game.phase_end);
|
||||
const timerPct = ((now - zero) / (end - zero) * 100);
|
||||
const displayPct = resolution
|
||||
const displayPct = resolution || game.phase === 'Finish'
|
||||
? 0
|
||||
: Math.min(timerPct, 100);
|
||||
|
||||
@ -162,8 +162,13 @@ function GamePanel(props) {
|
||||
|
||||
const gameClasses = `game ${resolution ? 'resolving': ''}`;
|
||||
|
||||
function gameClick(e) {
|
||||
e.stopPropagation();
|
||||
setActiveCryp(null);
|
||||
}
|
||||
|
||||
return (
|
||||
<main className={gameClasses} onClick={() => setActiveCryp(null)} >
|
||||
<main className={gameClasses} onClick={gameClick} >
|
||||
{header}
|
||||
{timer}
|
||||
{otherTeams.map(OpponentTeam)}
|
||||
|
||||
@ -47,7 +47,7 @@ function GameCryp(props) {
|
||||
resolution,
|
||||
activeSkill,
|
||||
setActiveCryp,
|
||||
// selectSkillTarget,
|
||||
selectSkillTarget,
|
||||
} = props;
|
||||
|
||||
const ko = cryp.green_life.value === 0 ? 'ko' : '';
|
||||
|
||||
@ -78,7 +78,7 @@ function Nav(args) {
|
||||
<h2>Team</h2>
|
||||
{teamElements}
|
||||
<h2>Instances</h2>
|
||||
<button onClick={() => navTo('list')}>list</button>
|
||||
<button onClick={() => navTo('list')}>Join</button>
|
||||
<hr />
|
||||
{joined}
|
||||
<h2>Hax</h2>
|
||||
|
||||
@ -88,7 +88,7 @@ function registerEvents(store) {
|
||||
}
|
||||
|
||||
return store.dispatch(actions.setGame(game));
|
||||
// return console.log('EVENT ->', 'game', game);
|
||||
return console.log('EVENT ->', 'game', game);
|
||||
}
|
||||
|
||||
function setAccount(account) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user