Merge remote-tracking branch 'janxious/patch-2' into develop

Closes #1441
develop
lethosor 2019-07-15 23:22:43 -04:00
commit f7f937e4d3
1 changed files with 3 additions and 1 deletions

@ -134,7 +134,7 @@ module DFHack
# does not include ghosts / wildlife
def unit_ishostile(u)
# return true if u.flags3.ghostly and not u.flags1.inactive
return unless unit_category(u) == :Others
return false unless unit_category(u) == :Others
case unit_other_category(u)
when :Berserk, :Undead, :Hostile, :Invader, :Underworld
@ -152,6 +152,8 @@ module DFHack
case unit_checkdiplomacy_hf_ent(histfig, group)
when 4, 5
true
else
false
end
elsif diplo = u.civ_tg.unknown1b.diplomacy.binsearch(df.ui.group_id, :group_id)