Skip to content

Commit

Permalink
Merge pull request #17 from TwilioQuest/15-fix-north-wing-summon-bug
Browse files Browse the repository at this point in the history
Trigger animation based on summonFinished
  • Loading branch information
Ryan Kubik authored Jul 28, 2022
2 parents 8011156 + dc42cfa commit 28ed616
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion levels/javascript/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ module.exports = function (event, world) {
}

if (
!worldState.northWing.summonAnimStarted &&
!worldState.northWing.summonAnimFinished &&
world.isObjectiveCompleted("instantiation") &&
world.isObjectiveCompleted("classes") &&
event.name === "objectiveDidClose"
Expand Down
4 changes: 0 additions & 4 deletions levels/javascript/events/summons.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
function scheduleSummonAnim(world, worldState) {
if (worldState.northWing.summonAnimStarted) {
return;
}

worldState.northWing.summonAnimStarted = true;

// tween camera to viewpoint
Expand Down

0 comments on commit 28ed616

Please sign in to comment.