[1.20][BUG] Bleed Ability calculations are healing the opponents. [Fix Presented]

The bleed spell is healing the opponents. Missing a multiplication by a negative as seen below in the fix. There is also an extra value presented that shouldn't be there.

    <SpellDef InternalName="Bleed_Ability">
        <DisplayName>Bleed</DisplayName>
        <Description>Attack that does normal damage and 3 damage per action to the victim.</Description>
        <FormattedDescription>Attack that does normal damage and %d damage per action to the victim.</FormattedDescription>
        <IconFG>Ability_Bleed_Icon.png</IconFG>
        <Cooldown>5</Cooldown>
        <SpellBookSortCategory>Unit</SpellBookSortCategory>
        <SpellBookSortSubCategory>Other</SpellBookSortSubCategory>
        <SpellType>Tactical</SpellType>
        <SpellClass>Offensive</SpellClass>
        <SpellSubClass>Debuff</SpellSubClass>
        <SpellTargetType>EnemyUnit</SpellTargetType>
        <HideInHiergamenon>1</HideInHiergamenon>
        <IsCastable>0</IsCastable>
        <CanBeDodged>1</CanBeDodged>
        <IsSpecialAbility>1</IsSpecialAbility>
        <UseWeaponRange>1</UseWeaponRange>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>DefendableDamage</Attribute>
        </GameModifier>
        <GameModifier>
            <ModType>Unit</ModType>
            <Attribute>CurHealth</Attribute>
            <IsForFormattedDescription>1</IsForFormattedDescription>
            <Duration>-1</Duration>
            <Effect>Bloody_OnHit</Effect>
            <PerTurn>1</PerTurn>
            <!--<Value>1</Value>-->
            <Calculate InternalName="Calc" ValueOwner="CastingUnit">
                <Expression><![CDATA[3 + [UnitStat_BonusBleed]]]></Expression>
            </Calculate>
            <Calculate InternalName="Value">
                <Expression><![CDATA[[Calc] * -1]]></Expression>
            </Calculate>
            <Calculate InternalName="ValueForFormattedDescription">
                <Expression><![CDATA[[Calc]]]></Expression>
            </Calculate>
        </GameModifier>
        <AIData AIPersonality="AI_General">
            <AIPriority>5</AIPriority>
        </AIData>
        <HitSoundFX>Spell_Knockback_01</HitSoundFX>
        <SpellDefEffect>
            <EffectName>Ability_ShieldBash_Particle</EffectName>
            <LocalPosition>0,0,0</LocalPosition>
            <EffectScale>0.25</EffectScale>
            <EffectDelay>0</EffectDelay>
            <SnapToTerrain>1</SnapToTerrain>
        </SpellDefEffect>
    </SpellDef>

2,249 views 1 replies
Reply #1 Top

This will be fixed int he public 1.3, thanks!