Workaround for issue #2486

This was SVN commit r15565.
This commit is contained in:
sanderd17 2014-07-26 17:09:49 +00:00
parent ea708e14bf
commit 9cd75067bc

View File

@ -127,6 +127,11 @@ AuraManager.prototype.RemoveTemplateBonus = function(value, player, classes, key
AuraManager.prototype.ApplyModifications = function(valueName, value, ent) 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]) if (!this.modificationsCache[valueName] || !this.modificationsCache[valueName][ent])
return value; return value;
@ -137,6 +142,11 @@ AuraManager.prototype.ApplyModifications = function(valueName, value, ent)
AuraManager.prototype.ApplyTemplateModifications = function(valueName, value, player, template) 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]) if (!this.templateModificationsCache[valueName] || !this.templateModificationsCache[valueName][player])
return value; return value;