Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Thunder Punch | Low Sweep | Thunder Punch
IF D/E AND not suspended AND Dive (suspend) was not used on the previous action AND Gorebyss's speed is higher than Conkeldurr, THEN Dig.
IF Gorebyss is under Endure AND Gorebyss is not poisoned AND Gorebyss is not behind a substitute AND Safeguard is not up AND Gorebyss is not to use Refresh AND Gorebyss has 1 HP AND the weather is not rain, THEN Toxic.
IF Gorebyss is under Endure AND Gorebyss has 1 HP AND Gorebyss is not behind a substitute, THEN Protect on the first instance, Drain Punch on the second, AND Protect on the third.
Protect ~ substitute (15) ~ protect
IF damaging ground-type move in combination, AND NOT conk is behind a substitute, THEN Hyper Beam + Hidden Power.
IF mach punch in combination a2, THEN endure and dragon tail next action.
IF taunt, THEN Hyper beam + Hidden power.