BattleEffect[] GetSkillEffects() { BattleEffect[] effs = new BattleEffect[Node.battleEffects.Length]; SkillEffectNode[] effNodes = SkillNode.GetSkillEffectNodes(Node.battleEffects); for (int i = 0; i < effs.Length; i++) { effs[i] = GetEffectByType(effNodes[i]); } return(effs); }
/// <summary> /// 攻击结束触发,(攻击物体,伤害值) /// </summary> static BattleEffect[] GetSkillEffects(SkillNode Node) { BattleEffect[] effs = new BattleEffect[Node.battleEffects.Length]; SkillEffectNode[] effNodes = SkillNode.GetSkillEffectNodes(Node.battleEffects); for (int i = 0; i < effs.Length; i++) { effs[i] = new ChangeValueEffect(effNodes[i]); } return(effs); }