CLOSES #415, CLOSES #484, CLOSES #488, CLOSES #492, CLOSES #497, CLOSES #541, CLOSES #559, CLOSES #562, CLOSES #563, CLOSES #564, CLOSES #565, CLOSES #566, CLOSES #567, CLOSES #568, CLOSES #569, CLOSES #570, CLOSES #571, CLOSES #572

This commit is contained in:
bryanthaboi
2026-08-01 08:10:20 -04:00
parent a33f3b1ceb
commit 9326b07583
70 changed files with 6791 additions and 208 deletions
+5 -1
View File
@@ -42,6 +42,9 @@ do
newWild = function(_, species, level)
local b = { species = species, level = level, ghost = false }
b.makeGhost = function(self) self.ghost = true end
-- the scope's branch (#492): disguised on entry, but IsGhostBattle
-- false, which is exactly the state the dodge below has to survive
b.makeUnveiledGhost = function(self) self.scopeReveal = true end
made[#made + 1] = b
return b
end,
@@ -70,7 +73,8 @@ do
check(noScope.noCatch, "and noCatch is set")
local withScope = trigger({ SILPH_SCOPE = 1 })
check(not withScope.ghost, "with the scope the disguise is gone")
check(not withScope.ghost, "with the scope IsGhostBattle is false")
check(withScope.scopeReveal, "and the unveil plays instead (#492)")
check(withScope.noCatch,
"but noCatch survives it -- balls are dodged either way")