forked from 0ad/0ad
parent
ea708e14bf
commit
9cd75067bc
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user