mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 10:01:39 +07:00
Solved some problems with resigning - we have others, specifically - TradeOffer's constructor assumes Unciv.Current.gameInfo... That'll eb a hassle to deal with...
This commit is contained in:
parent
273d473e18
commit
102a4e40c2
@ -244,7 +244,7 @@ object Battle {
|
||||
|
||||
// CS friendship from killing barbarians
|
||||
if (defeatedUnit.getCivInfo().isBarbarian() && !defeatedUnit.isCivilian() && civUnit.getCivInfo().isMajorCiv()) {
|
||||
for (cityState in UncivGame.Current.gameInfo!!.getAliveCityStates()) {
|
||||
for (cityState in defeatedUnit.getCivInfo().gameInfo.getAliveCityStates()) {
|
||||
if (civUnit.getCivInfo().knows(cityState) && defeatedUnit.unit.threatensCiv(cityState)) {
|
||||
cityState.cityStateFunctions.threateningBarbarianKilledBy(civUnit.getCivInfo())
|
||||
}
|
||||
@ -252,7 +252,7 @@ object Battle {
|
||||
}
|
||||
|
||||
// CS war with major pseudo-quest
|
||||
for (cityState in UncivGame.Current.gameInfo!!.getAliveCityStates()) {
|
||||
for (cityState in defeatedUnit.getCivInfo().gameInfo.getAliveCityStates()) {
|
||||
cityState.questManager.militaryUnitKilledBy(civUnit.getCivInfo(), defeatedUnit.getCivInfo())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user