The idea is to exit the method early if we know that the check won't pass. The function probably wants to look something like:
````
public void Killed(Actor self, AttackInfo e) 
{
    var r = ...
    if (r <= 100 - info.SuccessRate || self.Owner.WinState == WinState.Lost)
        return;

    var pilot = ...
````