Beispiel #1
0
            public override bool Test(Sim actor, Terrain target, bool isAutonomous, ref GreyedOutTooltipCallback greyedOutTooltipCallback)
            {
                if (actor.SkillManager == null)
                {
                    return(false);
                }

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

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

                if ((actor != null) && (actor.LotCurrent == actor.LotHome) && (Sims3.Gameplay.Queries.CountObjects <ITeleporter>(actor.LotHome) > 0x0))
                {
                    return(false);
                }

                return(skill.IsNinja());
            }