armoha / euddraft

System for pluginizing eudplib codes.
Other
29 stars 4 forks source link

Disabled(Condition | Action) does not return its argument #118

Closed armoha closed 9 months ago

armoha commented 9 months ago
// epScript example
if (Disabled(Bring(P1, Exactly, 0, "Artanis", "Anywhere"))) {}
/*
[Error] Invalid input for condition: None Traceback (most recent call last):
  File "C:\Users\armo\Documents\StarCraft\!Research\EUDReference\main.eps", line 130, in afterTriggerExec
    if (Disabled(Bring(P1, Exactly, 0, "Artanis", "Anywhere"))) {}
  File "D:\WORKON_HOME\pypoetry\Cache\virtualenvs\euddraft-B4hPMJVp-py3.10\lib\site-packages\eudplib\ctrlstru\cshelper.py", line 32, in __call__
  File "D:\WORKON_HOME\pypoetry\Cache\virtualenvs\euddraft-B4hPMJVp-py3.10\lib\site-packages\eudplib\ctrlstru\simpleblock.py", line 29, in _footer
  File "D:\WORKON_HOME\pypoetry\Cache\virtualenvs\euddraft-B4hPMJVp-py3.10\lib\site-packages\eudplib\ctrlstru\basicstru.py", line 35, in EUDJumpIfNot
  File "D:\WORKON_HOME\pypoetry\Cache\virtualenvs\euddraft-B4hPMJVp-py3.10\lib\site-packages\eudplib\trigger\branch.py", line 58, in EUDBranch
  File "D:\WORKON_HOME\pypoetry\Cache\virtualenvs\euddraft-B4hPMJVp-py3.10\lib\site-packages\eudplib\trigger\tpatcher.py", line 104, in PatchCondition
eudplib.utils.eperror.EPError: Invalid input for condition: None
*/