|
@@ -63,19 +63,20 @@ namespace GameLogic.Combat.Skill.MagicSkill
|
|
|
};
|
|
|
}
|
|
|
|
|
|
+ //
|
|
|
+ Debug.Log("法宝对敌人照成伤害");
|
|
|
+ ILifetCycleHitPoint lifetCycleHitPoint = target.GetMainHotPoin<ILifetCycleHitPoint>();
|
|
|
+ if (lifetCycleHitPoint == null)
|
|
|
+ {
|
|
|
+ SkillPlayFinish();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ BetterList<ILifetCycleHitPoint> cBetterList = new BetterList<ILifetCycleHitPoint>(1);
|
|
|
+ cBetterList.Add(lifetCycleHitPoint);
|
|
|
+ ActivationTimeLineData("gongji", currTarget: cBetterList);
|
|
|
SkillPlayFinish();
|
|
|
- // Debug.Log("法宝对敌人照成伤害");
|
|
|
- // ILifetCycleHitPoint lifetCycleHitPoint = target.GetMainHotPoin<ILifetCycleHitPoint>();
|
|
|
- // if (lifetCycleHitPoint == null)
|
|
|
- // {
|
|
|
- // return;
|
|
|
- // }
|
|
|
- //
|
|
|
- // BetterList<ILifetCycleHitPoint> cBetterList = new BetterList<ILifetCycleHitPoint>(1);
|
|
|
- // cBetterList.Add(lifetCycleHitPoint);
|
|
|
- // ActivationTimeLineData("gongji", currTarget: cBetterList);
|
|
|
- // SkillPlayFinish();
|
|
|
- //
|
|
|
+
|
|
|
// HarmReturnInfo harmReturnInfo = CObjectPool.Instance.Fetch<HarmReturnInfo>();
|
|
|
// harmReturnInfo.source = CombatHeroEntity;
|
|
|
// harmReturnInfo.target = target.GetMainHotPoin<CombatHeroHitPoint>();
|
|
@@ -84,8 +85,8 @@ namespace GameLogic.Combat.Skill.MagicSkill
|
|
|
// harmReturnInfo.harmType = HarmType.Default;
|
|
|
// harmReturnInfo.triggerData = triggerData;
|
|
|
// target.HeroHurt(harmReturnInfo);
|
|
|
- // CombatCalculateTool.Instance.Harm(CombatHeroEntity, lifetCycleHitPoint as CombatHeroHitPoint, 200, AttType.Normal, triggerData,
|
|
|
- // HarmType.Default);
|
|
|
+ CombatCalculateTool.Instance.Harm(CombatMagicWeaponEntity.RootMagicWeaponControl.combatHeroEntity, lifetCycleHitPoint as CombatHeroHitPoint, 1, AttType.FaBao, triggerData,wuXingType,null,
|
|
|
+ HarmType.Default);
|
|
|
}
|
|
|
}
|
|
|
}
|