slot machine not working (HasXp SeqCond)

so far ive been able to recmompile if the two return lines are removed so im assuming everything else is good?

simulated function XP SlotMachineGambleXP()
{
local pawn pawn;

pawn = Pawn(TargetActor);
if (pawn != none)
{
          return XP(pawn.GetXP());
   }
    else
    {
           return XP(TargetActor);
}

}