misc
This commit is contained in:
parent
7355f0668f
commit
6a4eb1837d
@ -38,7 +38,17 @@ class TargetSvg extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render(props, state) {
|
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;
|
const { width, height } = state;
|
||||||
if (!game) return false; // game will be null when battle ends
|
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)
|
if (game.phase === 'Finished') return false; // Clear everything if its over (in case of abandon)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user