Пример #1
0
    public static TarSkillSlot AddTarget(Skill _skill, FnValidSelection _IsValidSelection)
    {
        TarSkillSlot tarskillslot = new TarSkillSlot(_skill, _IsValidSelection);

        _skill.lstTargets.Add(tarskillslot);

        return(tarskillslot);
    }
Пример #2
0
    public static TarAdapt AddTarget(Skill _skill, FnValidSelection _IsValidSkillSlot, FnValidSelection _IsValidAdaptSkill)
    {
        TarSkillSlot tarskillslot = TarSkillSlot.AddTarget(_skill, _IsValidSkillSlot);

        TarAdapt tarAdapt = new TarAdapt(_skill, _IsValidAdaptSkill);

        _skill.lstTargets.Add(tarAdapt);

        tarAdapt.iTargetSkillSlotToReplace = tarskillslot.iTargetIndex;

        return(tarAdapt);
    }
Пример #3
0
 public override void InitTargets()
 {
     TarMana.AddTarget(this, manaCost);
     TarAdapt.AddTarget(this, TarSkillSlot.IsOwnedBySameChr(chrOwner), Target.TRUE);
 }