Gaiden Magic Mag/2 Weapon Bug #582
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.
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
.The text was updated successfully, but these errors were encountered: