Hi, im made a new spell for my hero what icrease the hero health by 20% for 10sec, its work fine, but after the 10sec the healt still buffed dont decrease to the normal unbuffed value.
ATTRIBUTEMODIFIER.ini
ModifierList BloodGore
Category = SPELL
Modifier = HEALTH_MULT 120%
Duration = 10000 // lasts for 30 seconds
End
HERO.ini
;--------- Blood Gore-----------------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CremationEnabler
SpecialPowerTemplate = SpecialAbilityBloodGore
TriggeredBy = Upgrade_AragornBladeMaster
End
Behavior = SpecialPowerModule ModuleTag_CremationStarter ; SpecialAbility is a SpecialPower, SpecialPower is anyting special
SpecialPowerTemplate = SpecialAbilityBloodGore
StartsPaused = No
End
Behavior = HeroModeSpecialAbilityUpdate ModuleTag_CremationUpdate ; So the difference in SpecialAbility is that it takes timing from this Update, instead of simply firing.
SpecialPowerTemplate = SpecialAbilityBloodGore
HeroAttributeModifier = BloodGore
HeroEffectDuration = 10000 ; this should sync with the auto ability delay re-fire time in commandButtons.ini
UnpackTime = 1 ; insant unpack
End