Upgrade Upgrade_CaHSunFlare Type = OBJECT End
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CAHSunFlareEnabler SpecialPowerTemplate = SpecialAbilityCAHSunFlare TriggeredBy = Upgrade_CaHSunFlare End Behavior = OCLSpecialPower ModuleTag_CAHSunFlare SpecialPowerTemplate = SpecialAbilityCAHSunFlare OCL = OCL_SpecialPowerSunflare CreateLocation = CREATE_AT_LOCATION AvailableAtStart = Yes AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES ReEnableAntiCategory = Yes AttributeModifierWeatherBased = Yes WeatherDuration = SPELL_SUNFLARE_DURATION ChangeWeather = SUNNY End Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_CAHSunFlareEnablerUpdate SpecialPowerTemplate = SpecialAbilityCAHSunFlare SpecialWeapon = SunflareWeapon WhichSpecialWeapon = 3 ; Corresponds to SPECIAL_WEAPON_THREE StartAbilityRange = 1.0 SkipContinue = Yes UnpackTime = 2000 ; Trigger on frame 60 (of 100) PackTime = 1333 ; Remaining 40 frames (of 100) MustFinishAbility = Yes End
CommandButton Command_CAHSunFlare Command = SPECIAL_POWER SpecialPower = SpecialAbilityCAHBookSunFlare Options = NEED_TARGET_POS TextLabel = CONTROLBAR:Sunflare ButtonImage = SBGood_Sunflare ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:TooltipSunflare RadiusCursorType = SunflareRadiusCursor CursorName = AttackObj InPalantir = Yes CreateAHeroUIAllowableUpgrades = Upgrade_CreateAHero_ClassIstariWizard CreateAHeroUIMinimumLevel = 8 CreateAHeroUIPrerequisiteButtonName = None CreateAHeroUICostIfSelected = 1000 End
SpecialPower SpecialAbilityCAHSunFlare Enum = SPECIAL_SPELL_BOOK_SUNFLARE RadiusCursorRadius = SPELL_SUNFLARE_EFFECT_RADIUS ReloadTime = 180000 ;SPELL_RECHARGE_TIME_TIER_4 ;// in milliseconds ViewObjectDuration = SPELL_SUNFLARE_VIEW_OBJECT_DURATION ViewObjectRange = SPELL_SUNFLARE_VIEW_OBJECT_RANGE InitiateAtLocationSound = SpellSunflareMS End
deleted lines from specialpower.ini
Flags = WATER_OK RESPECT_RECHARGE_TIME_DISCOUNT RequiredSciences = SCIENCE_Sunflare
i'm 80% sure that the game is crashing because the code in createaheropowers.inc is incomplete/incorrect
Edited by platinumshadow, 25 April 2014 - 01:12 AM.