From 9cd75067bc7aaa366834f4e60b99efe810e9db8c Mon Sep 17 00:00:00 2001 From: sanderd17 Date: Sat, 26 Jul 2014 17:09:49 +0000 Subject: [PATCH] Workaround for issue #2486 This was SVN commit r15565. --- .../mods/public/simulation/components/AuraManager.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/binaries/data/mods/public/simulation/components/AuraManager.js b/binaries/data/mods/public/simulation/components/AuraManager.js index 4e77ae515c..f6515b8e68 100644 --- a/binaries/data/mods/public/simulation/components/AuraManager.js +++ b/binaries/data/mods/public/simulation/components/AuraManager.js @@ -127,6 +127,11 @@ AuraManager.prototype.RemoveTemplateBonus = function(value, player, classes, key AuraManager.prototype.ApplyModifications = function(valueName, value, ent) { + // FIXME Due do a bug in IonMonkey v24, we must interprete this method + // When we upgrade to v31, remove the try-catch line. + // See #2486 + try {} catch(e) {} + if (!this.modificationsCache[valueName] || !this.modificationsCache[valueName][ent]) return value; @@ -137,6 +142,11 @@ AuraManager.prototype.ApplyModifications = function(valueName, value, ent) AuraManager.prototype.ApplyTemplateModifications = function(valueName, value, player, template) { + // FIXME Due do a bug in IonMonkey v24, we must interprete this method + // When we upgrade to v31, remove the try-catch line. + // See #2486 + try {} catch(e) {} + if (!this.templateModificationsCache[valueName] || !this.templateModificationsCache[valueName][player]) return value;