mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 10:55:19 -04:00
Possible solution for #2917, needs testing. Added crossbow bolts to missile orientation display logic.
This commit is contained in:
parent
cd0c252b14
commit
1d81133f24
2 changed files with 3 additions and 2 deletions
app
|
@ -85,7 +85,8 @@ var ensureLanguagesImportedFromUserCodeMap = function (userCodeMap) {
|
|||
|
||||
var restricted = ["XMLHttpRequest", "Worker"];
|
||||
if (!self.navigator || !(self.navigator.userAgent.indexOf('MSIE') > 0) &&
|
||||
!self.navigator.userAgent.match(/Trident.*rv\:11\./)) {
|
||||
!self.navigator.userAgent.match(/Trident.*rv\:11\./) &&
|
||||
!self.navigator.userAgent.match(/Edge/)) {
|
||||
// Can't restrict 'importScripts' in IE11, skip for all IE versions
|
||||
restricted.push("importScripts");
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ module.exports = Lank = class Lank extends CocoClass
|
|||
constructor: (@thangType, options) ->
|
||||
super()
|
||||
spriteName = @thangType.get('name')
|
||||
@isMissile = /(Missile|Arrow|Spear)/.test(spriteName) and not /(Tower|Charge)/.test(spriteName)
|
||||
@isMissile = /(Missile|Arrow|Spear|Bolt)/.test(spriteName) and not /(Tower|Charge)/.test(spriteName)
|
||||
@options = _.extend($.extend(true, {}, @options), options)
|
||||
@setThang @options.thang
|
||||
if @thang?
|
||||
|
|
Loading…
Reference in a new issue