编队系统重置 选角页面基本完成 等待存入playerprefs
This commit is contained in:
@@ -664,6 +664,25 @@ public class AllyCombatant : MonoBehaviour, ICombatant
|
||||
}
|
||||
}
|
||||
|
||||
private void CastSkillGroup(SkillGroup group, int slotIndex)
|
||||
{
|
||||
if (group == null) return;
|
||||
// For auto-casting triggered by ManaFull, only cast skills that are configured to trigger on ManaFull.
|
||||
for (int i = 0; i < group.skills.Length; i++)
|
||||
{
|
||||
var skill = group.skills[i];
|
||||
if (skill == null) continue;
|
||||
// Only cast skills whose triggerCondition matches OnManaFull when this method is invoked from auto-cast path
|
||||
if (skill.triggerCondition != SkillDefinition.SkillTrigger.OnManaFull)
|
||||
{
|
||||
Debug.Log($"[AllyCombatant] Slot {slotIndex + 1} skill '{skill.skillId}' skipped: triggerCondition={skill.triggerCondition}.");
|
||||
continue;
|
||||
}
|
||||
SkillBuilder.Instance.UseSkillDefinition(skill, slotIndex, -1f, null);
|
||||
Debug.Log($"[AllyCombatant] Slot {slotIndex + 1} cast skill from group: {skill.skillId}");
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerOnManaFull()
|
||||
{
|
||||
if (currentMana >= maxMana)
|
||||
|
||||
Reference in New Issue
Block a user