| | |
| | | TeamHero teamHero = caster.teamHero; |
| | | EventBroadcast.Instance.Broadcast<string, SkillConfig, TeamHero>(EventName.BATTLE_CAST_SKILL, guid, skillConfig, teamHero); |
| | | |
| | | if (caster != null) |
| | | { |
| | | // 战斗类型 0-常规;1-连击;2-反击;3-追击;4-子技能;5-被动触发的 |
| | | DamageNumConfig hintConfig = null; |
| | | if (tagUseSkillAttack.BattleType == 1) |
| | | { |
| | | hintConfig = DamageNumConfig.Get(BattleConst.BattleComboAttack); |
| | | } |
| | | else if (tagUseSkillAttack.BattleType == 2) |
| | | { |
| | | hintConfig = DamageNumConfig.Get(BattleConst.BattleCounterAttack); |
| | | } |
| | | else if (tagUseSkillAttack.BattleType == 3) |
| | | { |
| | | hintConfig = DamageNumConfig.Get(BattleConst.BattleChaseAttack); |
| | | } |
| | | |
| | | if (hintConfig != null) |
| | | { |
| | | caster.heroInfoBar.ShowTips(((char)hintConfig.prefix).ToString(), true); |
| | | } |
| | | } |
| | | |
| | | // 高亮所有本次技能相关的目标 |
| | | HighLightAllTargets(); |
| | | |
| | |
| | | skillEffect.Play(OnHitTargets); |
| | | foreach (var subSkillPack in tagUseSkillAttack.subSkillList) |
| | | { |
| | | RecordAction recordAction = CustomHB426CombinePack.CreateSkillAction(battleField.guid, new List<GameNetPackBasic>() { subSkillPack }); |
| | | SkillRecordAction recordAction = CustomHB426CombinePack.CreateSkillAction(battleField.guid, new List<GameNetPackBasic>() { subSkillPack }); |
| | | otherSkillActionList.Add(recordAction); |
| | | battleField.recordPlayer.ImmediatelyPlay(recordAction); |
| | | } |
| | | isPlay = true; |
| | |
| | | BattleDebug.LogError("other skill casting " + combinePack.startTag.Tag); |
| | | var otherSkillAction = combinePack.CreateSkillAction(); |
| | | otherSkillAction.fromSkillId = skillConfig.SkillID; |
| | | otherSkillActionList.Add(otherSkillAction); |
| | | return; |
| | | } |
| | | |