Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gaiden Magic Mag/2 Weapon Bug #582

Open
masterofcontroversy opened this issue Feb 3, 2024 · 0 comments
Open

Gaiden Magic Mag/2 Weapon Bug #582

masterofcontroversy opened this issue Feb 3, 2024 · 0 comments
Labels
Bug Issues pertaining to bugs. External Hacks Issues pertaining to external hacks that aren't a core part of the Skill System or its hooks.

Comments

@masterofcontroversy
Copy link
Contributor

The AI crashes when processing mag/2 weapons due to an infinite loop caused by Gaiden Magic.
This can be reproduced by giving a unit a mag/2 range weapon, enabling Gaiden Magic, putting the unit in range of an enemy, then starting enemy phase.

The function call sequence that leads to this loop is:
NewGetUnitEquippedWeapon -> Can_Attack_Target -> GetItemRangeM -> GetItemRange -> HalfMag_Range -> GetUnitMagBy2Range -> GetUnitPower -> NewGetUnitEquippedWeapon.

@sme23 sme23 added the Bug Issues pertaining to bugs. label Feb 15, 2024
@sme23 sme23 added the External Hacks Issues pertaining to external hacks that aren't a core part of the Skill System or its hooks. label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues pertaining to bugs. External Hacks Issues pertaining to external hacks that aren't a core part of the Skill System or its hooks.
Projects
None yet
Development

No branches or pull requests

2 participants