mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-14 05:55:00 -04:00
Don't include flow for invisible methods, don't include protectAPI for non-writable methods.
This commit is contained in:
parent
4d891ee7fa
commit
632316314e
1 changed files with 2 additions and 2 deletions
|
@ -71,8 +71,8 @@ module.exports = class Spell
|
|||
yieldConditionally: thang.plan?
|
||||
requiresThis: thang.requiresThis
|
||||
# TODO: Gridmancer doesn't currently work with protectAPI, so hack it off
|
||||
protectAPI: not (@skipProtectAPI or window.currentView?.level.get('name').match("Gridmancer"))
|
||||
includeFlow: not @skipFlow
|
||||
protectAPI: not (@skipProtectAPI or window.currentView?.level.get('name').match("Gridmancer")) and @permissions.readwrite.length > 0 # If anyone can write to this method, we must protect it.
|
||||
includeFlow: not @skipFlow and @canRead()
|
||||
#callIndex: 0
|
||||
#timelessVariables: ['i']
|
||||
#statementIndex: 9001
|
||||
|
|
Loading…
Add table
Reference in a new issue