Bug Fix on APL traits #18

Merged
4n0n merged 2 commits from LyLoLoq/Bastion:main into main 3 years ago
if actor:HasTraits() and actor:Evaluate() then
    if actor:Execute() then
        break
    end
else
    if actor:Execute() then
        break
    end
end

If we have traits for the actor but the Evaluate returns false it would always execure the actor because of the else

```lua if actor:HasTraits() and actor:Evaluate() then if actor:Execute() then break end else if actor:Execute() then break end end ``` If we have traits for the actor but the Evaluate returns false it would always execure the actor because of the else
LyLoLoq added 1 commit 3 years ago
LyLoLoq added 1 commit 3 years ago
LyLoLoq force-pushed main from 47cfd50b8c to 15920cecb3 3 years ago
4n0n merged commit ede085dd13 into main 3 years ago
The pull request has been merged as ede085dd13.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Bastion/Bastion#18
Loading…
There is no content yet.