ACF6: Protect goal crate from damage
authorWuzzy <Wuzzy2@mail.ru>
Sun, 26 May 2019 17:40:38 +0200
changeset 15079 0358a907b8f4
parent 15078 de864caac024
child 15080 5b245e8ed578
ACF6: Protect goal crate from damage
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Sun May 26 16:16:47 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/dragon.lua	Sun May 26 17:40:38 2019 +0200
@@ -565,7 +565,10 @@
     end
   end
   HideHedge(cyborg)
+  -- Collect this crate to win
   jetCrate = SpawnSupplyCrate(3915, 1723, amJetpack)
+  -- Protect crate from damage, just in case
+  SetState(jetCrate, bor(GetState(jetCrate), gstNoDamage))
 
   --[[ Block the left entrance.
        Otherwise the player could rope out of the map and