spell refactor part 2
This commit is contained in:
@@ -233,7 +233,16 @@ namespace Beyond {
|
||||
|
||||
if (m_currentItem.type == bItemType.QuantaPower || m_currentItem.type == bItemType.PowerScroll)
|
||||
{
|
||||
Player.Instance.Magic.SelectPowerBasedOnArea(currentIndex);
|
||||
// --- FIX STARTS HERE ---
|
||||
// Old logic: Player.Instance.Magic.SelectPowerBasedOnArea(currentIndex);
|
||||
// New Logic: Directly tell the equipment area to select this slot.
|
||||
// MagicAttacks automatically looks at whatever is equipped in this area.
|
||||
if (equipArea != null)
|
||||
{
|
||||
equipArea.SetEquipSlot(currentIndex);
|
||||
}
|
||||
// --- FIX ENDS HERE ---
|
||||
|
||||
if (!InputNameToPress.IsNullOrWhitespace())
|
||||
{
|
||||
CrossPlatformInputManager.SetButtonDown(InputNameToPress);
|
||||
@@ -263,5 +272,4 @@ namespace Beyond {
|
||||
isLocked = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user