Ticket #2340: townbellfix.patch

File townbellfix.patch, 749 bytes (added by Itms, 10 years ago)
  • binaries/data/mods/public/simulation/components/AlertRaiser.js

     
    5353    var level = this.GetLevel();
    5454    var units = rangeMan.ExecuteQuery(this.entity, 0, this.template.Range, players, IID_UnitAI).filter( function(e){
    5555        var cmpUnitAI = Engine.QueryInterface(e, IID_UnitAI);
    56         return (cmpUnitAI.ReactsToAlert(level) && !cmpUnitAI.IsDomestic());
     56        return (!cmpUnitAI.IsUnderAlert() && cmpUnitAI.ReactsToAlert(level) && !cmpUnitAI.IsDomestic());
    5757        });
    5858   
    5959    for each(var unit in units)