/// <summary> /// 初始化 /// </summary> /// <param name="pubInfo"></param> public void Init(PublicInfo pubInfo) { 攻击力 = pubInfo.Hero.实际攻击值; 护盾值 = pubInfo.Hero.ShieldPoint; 生命力 = pubInfo.Hero.LifePoint; 可用水晶 = pubInfo.crystal.CurrentRemainPoint; 总体水晶 = pubInfo.crystal.CurrentFullPoint; 英雄技能 = pubInfo.Hero.HeroSkill.序列号; 英雄技能描述 = pubInfo.Hero.HeroSkill.描述; 使用英雄技能 = pubInfo.IsHeroSkillEnable(true); 可以攻击 = pubInfo.Hero.IsAttackEnable(true); }
private static void Combo(ActionStatus actionStatus, CardBasicInfo card, List<string> ActionCodeLst, PublicInfo PlayInfo) { if ((card.卡牌种类 != CardBasicInfo.资源类型枚举.法术) && PlayInfo.连击状态 && (!string.IsNullOrEmpty(card.连击效果))) { //初始化 Buff效果等等 SpellCard ablity = (SpellCard)CardUtility.GetCardInfoBySN(card.连击效果); if (ablity != null) { var ResultArg = ablity.UseSpell(actionStatus); if (ResultArg.Count != 0) { ActionCodeLst.AddRange(ResultArg); //英雄技能等的时候,不算[本方施法] if (ablity.法术卡牌类型 == CardBasicInfo.法术卡牌类型枚举.普通卡牌) actionStatus.battleEvenetHandler.事件池.Add(new EventCard.全局事件() { 触发事件类型 = EventCard.事件类型枚举.施法, 触发位置 = PlayInfo.Hero.战场位置 }); } } } }
public string DealHero(ActionStatus game, PublicInfo PlayInfo) { throw new NotImplementedException(); }