Skip to content

Amplify effect is not removed correctly with burst fire #1516

@M3r1st

Description

@M3r1st

Due to how X2AbilityMultiTarget_BurstFire is handled, abilities like Fan Fire can cause the counter to skip the value required for it to be removed.

if (AmplifyState.ShotsRemaining == 1)
{
	AmplifyState.RemoveEffect(NewGameState, NewGameState);
}
else
{
	AmplifyState = XComGameState_Effect_Amplify(NewGameState.ModifyStateObject(AmplifyState.Class, AmplifyState.ObjectID));
	AmplifyState.ShotsRemaining -= 1;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions