RacesOfValheim/JotunnModStub/Factions
kanym 6d9f07217e fix(factions): no AI freeze when a targeted piece is destroyed
FactionStaticTargetPatch read m_targetStatic as a boxed object, so the
null check missed Unity's destroyed-object state. A piece destroyed
while a mob targeted it passed the check, and reading its gameObject
threw. The throw escaped into MonoUpdaters.FixedUpdate and stopped
every AI after that mob, every frame, until the field changed.

Cast to Component and use Unity's null check; clear a dead target.
2026-10-18 13:33:21 +02:00
..
FactionHostilityPatch.cs fix(factions): no AI freeze when a targeted piece is destroyed 2026-10-18 13:33:21 +02:00
FactionMerchant.cs factionsmerchants 2026-08-06 10:13:57 +02:00
FactionMerchantCatalog.cs feat(text): merchants, troops and the hive's shelf come from translation files 2026-09-28 18:50:54 +02:00
FactionMerchantJokes.cs feat(text): merchants, troops and the hive's shelf come from translation files 2026-09-28 18:50:54 +02:00
FactionMerchantPatches.cs Merge branch 'war-vulture' into main 2026-08-25 18:52:10 +02:00
FactionMerchantRuntime.cs factionsmerchants 2026-08-06 10:13:57 +02:00
FactionMerchantSellPanel.cs 1.0 compatibility 2026-09-10 18:05:24 +02:00
FactionMerchantSetup.cs feat(text): merchants, troops and the hive's shelf come from translation files 2026-09-28 18:50:54 +02:00
FactionPieceTruce.cs fix(factions): allied mobs spare a race's buildings with nobody home 2026-10-17 15:50:41 +02:00
FactionRaids.cs feat(factions): no raids made only of allies, and allies spare the whole base 2026-09-28 21:41:29 +02:00
FactionsConfig.cs feat(factions): no raids made only of allies, and allies spare the whole base 2026-09-28 21:41:29 +02:00