Skip to content

Commit

Permalink
Merge pull request #348 from honzi/fix-issue-331
Browse files Browse the repository at this point in the history
fix issue #331 for level 19
  • Loading branch information
AlexNisnevich committed Aug 3, 2015
2 parents 279407c + 2a2a097 commit 5ef7cc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion levels/19_documentObjectMadness.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ function startLevel(map) {
var currentPosition = $dom.find('.' + className);
if (currentPosition.parent().length > 0) {
if (currentPosition.parent().hasClass('container')) {
map.getPlayer().killedBy('moving off the edge of the DOM');
if (className === 'drEval') {
map.getPlayer().killedBy('moving off the edge of the DOM');
} else {
return false;
}
} else {
currentPosition.parent().addClass(className);
currentPosition.removeClass(className);
Expand Down

0 comments on commit 5ef7cc8

Please sign in to comment.