private void SwitchOff() { SwitchSkillType switchSkillType = this.switchType; if (switchSkillType != SwitchSkillType.Attack) { if (switchSkillType == SwitchSkillType.Skill) { base.unit.ReplaceSkill(this.targetId, this.sourceId); if (base.unit.isPlayer) { Singleton <SkillView> .Instance.ChangePlayer(); } } } else { base.unit.ReplaceAttack(this.targetId, this.sourceId); } }
protected override void StartHighEff() { this.switchType = (SwitchSkillType)this.data.param1; if (this.data.strParam1 == "Attack") { this.sourceId = base.unit.currentAttack.skillMainId; } else { this.sourceId = this.data.strParam1; } if (this.data.strParam1 == "Skill") { this.sourceId = base.unit.currentSkill.skillMainId; } else { this.targetId = this.data.strParam2; } this.SwitchOn(); this.DoSwitchOffType(); }