Add script hook onNewTurn to the end of AfterSwitchHedgehog. This should signal the very start of a new turn, immediately after CurrentTeam is switched.
+ − <?xml version="1.0" encoding="UTF-8"?>
+ − <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+ − <plist version="1.0">
+ − <dict>
+ − <key>CFBundleName</key>
+ − <string>Hedgewars</string>
+ − <key>CFBundleExecutable</key>
+ − <string>hedgewars</string>
+ − <key>CFBundleGetInfoString</key>
+ − <string>http://www.hedgewars.org</string>
+ − <key>CFBundleIconFile</key>
+ − <string>Icon.icns</string>
+ − <key>CFBundleIdentifier</key>
+ − <string>org.hedgewars.desktop</string>
+ − <key>CFBundlePackageType</key>
+ − <string>APPL</string>
+ − <key>CFBundleSignature</key>
+ − <string>Hedge</string>
+ − <key>CFBundleVersion</key>
+ − <string>${HEDGEWARS_REVISION}</string>
+ − <key>CFBundleShortVersionString</key>
+ − <string>${HEDGEWARS_VERSION}</string>
+ − <key>NSHumanReadableCopyright</key>
+ − <string>© 2004-2010 Hedgewars Project</string>
+ − <key>NSAppleScriptEnabled</key>
+ − <false/>
+ − <key>LSRequiresNativeExecution</key>
+ − <true/>
+ − <key>LSMinimumSystemVersionByArchitecture</key>
+ − <dict>
+ − <key>x86_64</key>
+ − <string>10.6.0</string>
+ − <key>i386</key>
+ − <string>10.4.0</string>
+ − <key>ppc</key>
+ − <string>10.4.0</string>
+ − </dict>
+ − <key>LSArchitecturePriority</key>
+ − <array>
+ − <string>x86_64</string>
+ − <string>i386</string>
+ − <string>ppc</string>
+ − </array>
+ − <key>LSMinimumSystemVersion</key>
+ − <string>${minimum_macosx}</string>
+ − <key>SUPublicDSAKeyFile</key>
+ − <string>dsa_pub.pem</string>
+ − <key>LSApplicationCategoryType</key>
+ − <string>public.app-category.strategy-games</string>
+ − </dict>
+ − </plist>