diff --git a/1.6/1.6/Assemblies/ArachnaeSwarm.dll b/1.6/1.6/Assemblies/ArachnaeSwarm.dll index 95065ab..8d1c09f 100644 Binary files a/1.6/1.6/Assemblies/ArachnaeSwarm.dll and b/1.6/1.6/Assemblies/ArachnaeSwarm.dll differ diff --git a/Source/ArachnaeSwarm/Hediff_ConfigurableMutant.cs b/Source/ArachnaeSwarm/Hediff_ConfigurableMutant.cs index d41a322..5cb0165 100644 --- a/Source/ArachnaeSwarm/Hediff_ConfigurableMutant.cs +++ b/Source/ArachnaeSwarm/Hediff_ConfigurableMutant.cs @@ -230,8 +230,8 @@ namespace ArachnaeSwarm } pawn.timesRaisedAsShambler++; MutantUtility.RestoreUntilNotDowned(pawn); - - if (pawn.Spawned && stun) + + if (pawn.Spawned && stun) { pawn.Rotation = Rot4.South; if(compProps != null) diff --git a/Source/ArachnaeSwarm/Hediff_NecroticVirus_Configurable.cs b/Source/ArachnaeSwarm/Hediff_NecroticVirus_Configurable.cs index c8c151b..d5970cf 100644 --- a/Source/ArachnaeSwarm/Hediff_NecroticVirus_Configurable.cs +++ b/Source/ArachnaeSwarm/Hediff_NecroticVirus_Configurable.cs @@ -64,6 +64,9 @@ namespace ArachnaeSwarm // **调用我们自己的工具方法,传入从XML获取的mutantDef** NecroticTransformationUtility.ResurrectAsCustomMutant(pawn, comp.Props.mutantDef, faction); + // **关键修复:在成功转化后,立即移除导致转化的Hediff本身,防止其残留** + pawn.health.RemoveHediff(this); + // 添加转化特效 FleckMaker.ThrowSmoke(position.ToVector3Shifted(), map, 1.5f); FleckMaker.ThrowDustPuff(position.ToVector3Shifted(), map, 1.2f);