Skip to content

[Bug Report] Invalid shield interaction with unit-to-unit conversion #172

@YinShuiCi

Description

@YinShuiCi

Hi, my friend, I found that on the Ares platform, there seems to be some problems in the operation of shield logic in units that use both deformation logic and shield logic

[SIREN]
IsSimpleDeployer=yes
Convert.Deploy=SIREN2
Cursor.Deploy=ModeII

[SIREN2]
IsSimpleDeployer=yes
Convert.Deploy=SIREN
Cursor.Deploy=ModeI
Shield.Strength=2400
Shield.Armor=s_capital
Shield.AbsorbOverDamage=no
Shield.SelfHealing=120
Shield.SelfHealing.Rate=0.1
Shield.Respawn=1200
Shield.Respawn.Rate=2
Shield.BracketDelta=0
Shield.IdleAnim=SIRENSHLD
Shield.BreakAnim=SIRENSHLD2
Shield.HitAnim=

When the unit is converted from modeI to modeII, the shield logic will operate normally. However, when the unit is converted from modeII to modeI, there seems to be a problem in the operation of the shield logic. What I understand is that the modeII state of the unit has a shield, while the modeI state of the unit has no shield. However, when the unit is converted from modeII to modeI, the animation of the shield will still be displayed But no shield health(but still have BracketDelta of shield). If I misunderstand the code, please give me some guidance, thank you.

报错

Metadata

Metadata

Assignees

No one assigned

    Labels

    InteractionSomething related to interaction with other extension, program etc.❓Phobos bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions