Ticket #1215: Trader.js.patch
File Trader.js.patch, 568 bytes (added by , 12 years ago) |
---|
-
Trader.js
161 161 162 162 Trader.prototype.CanTrade = function(target) 163 163 { 164 // Check that the target is not a foundation 165 var cmpTargetFoundation = Engine.QueryInterface(target, IID_Foundation) 166 if (cmpTargetFoundation) 167 return false; 164 168 var cmpTraderIdentity = Engine.QueryInterface(this.entity, IID_Identity); 165 169 var cmpTargetIdentity = Engine.QueryInterface(target, IID_Identity); 166 170 // Check that the target exists