Ticket #2340: townbellfix.patch
File townbellfix.patch, 749 bytes (added by , 10 years ago) |
---|
-
binaries/data/mods/public/simulation/components/AlertRaiser.js
53 53 var level = this.GetLevel(); 54 54 var units = rangeMan.ExecuteQuery(this.entity, 0, this.template.Range, players, IID_UnitAI).filter( function(e){ 55 55 var cmpUnitAI = Engine.QueryInterface(e, IID_UnitAI); 56 return ( cmpUnitAI.ReactsToAlert(level) && !cmpUnitAI.IsDomestic());56 return (!cmpUnitAI.IsUnderAlert() && cmpUnitAI.ReactsToAlert(level) && !cmpUnitAI.IsDomestic()); 57 57 }); 58 58 59 59 for each(var unit in units)