This commit is contained in:
Mashy 2019-10-28 15:08:22 +10:00
parent 7355f0668f
commit 6a4eb1837d

View File

@ -38,7 +38,17 @@ class TargetSvg extends Component {
}
render(props, state) {
const { game, account, animating, animSkill, itemInfo, gameEffectInfo, tutorialGame } = props;
const {
// Changing State Variables
account,
animating,
animSkill,
game,
gameEffectInfo,
tutorialGame,
// Static
itemInfo,
} = props;
const { width, height } = state;
if (!game) return false; // game will be null when battle ends
if (game.phase === 'Finished') return false; // Clear everything if its over (in case of abandon)