[.992][Bug]Enchanted Hammers Can't Be Cast On Forest Terrain

<SpellDef InternalName="EnchantedHammers">
        <DisplayName>Enchanted Hammers</DisplayName>
        <Description>Adds +1 Material to the city</Description>
        <Image>S_Inspiration_Painting.png</Image>
        <IconFG>S_EnchantedHammers_Icon.png</IconFG>
        <IconColor>255,223,114</IconColor>
        <AutoUnlock>1</AutoUnlock>
        <SpellBookSortCategory>City</SpellBookSortCategory>
        <SpellBookSortSubCategory>CityEnchantment</SpellBookSortSubCategory>
        <SpellType>Strategic</SpellType>
        <SpellClass>ImpResourceBooster</SpellClass>
        <SpellSubClass>Other</SpellSubClass>
        <SpellTargetType>FriendlyCity</SpellTargetType>
        <Prereq>
            <Type>AbilityBonusOption</Type>
            <Attribute>Earth1</Attribute>
        </Prereq>
        <SpellResourceCost>
            <Resource>Mana</Resource>
            <Amount>10</Amount>
        </SpellResourceCost>
        <GameModifier>
            <ModType>Resource</ModType>
            <Attribute>TileYieldMaterials</Attribute>
            <Duration>-1</Duration>
            <PerTurn>1</PerTurn>
            <Value>1</Value>
        </GameModifier>
        <ValidTerrainCategory>City</ValidTerrainCategory>
        <AIData AIPersonality="AI_General">
            <AIPriority>120</AIPriority>
        </AIData>
        <HitSoundFX>Spell_EnchantedHammers_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>S_AuraofMight_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>.75</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

 

I don't see anything in the XML that would specifically prevent EH from being cast on a city built on forest terrain, but it definitely doesn't work.

Didn't try with other city enchantments, so it could be a more widespread problem.

Save game.

5,060 views 7 replies
Reply #1 Top

Seems like the real problem here is the city tile didn't get converted to city terrain?

Reply #3 Top

I can confirm that reloading your save game allows you to cast enchanted hammers. I haven't been able to reproduce this bug in awhile, but the next time that I do, I'm sending in the debug.err report so they can track down the problem.

Reply #4 Top

Aww shit! Reloading did fix this, so my save game is of no use.

BTW, when is the debug.err updated?  At the end of the turn or any time an action is taken?

Reply #5 Top


It is consistently updated for every action you are doing. It spits out the errors immediately as the action is being executed. Problem is that it is overwritten when you restart the game.

Reply #6 Top

Alright then.  When (if) I find this bug again I'll repost with a debug.err.  Thanks!

Reply #7 Top

End turn anyway because the problem persists. Just to be sure still try to cast the enchanted hammers so it at least spits out something about it. ;)