示例#1
0
            public override bool Test(Sim a, Sim target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
            {
                if (isAutonomous)
                {
                    return(false);
                }

                if (a != target)
                {
                    return(false);
                }

                if (!target.SimDescription.IsPlayableGhost)
                {
                    return(false);
                }

                Assassination skill = a.SkillManager.GetSkill <Assassination>(Assassination.StaticGuid);

                if (skill == null)
                {
                    return(false);
                }

                if (!skill.IsGhost())
                {
                    return(false);
                }

                if (Urnstone.FindGhostsGrave(a) == null)
                {
                    return(false);
                }

                return(true);
            }