Code Monkey home page Code Monkey logo

Comments (3)

Doytoend avatar Doytoend commented on June 2, 2024 2

Thanks @cocosolos it is now working as expected after the merge. Both forms appeared and the battlefield did not exit prematurely.

from darkstar.

cocosolos avatar cocosolos commented on June 2, 2024 1

This happens in a few fights where there's multiple phases to the fight and the target mob isn't spawned at the start. In this case, there are two Eldnarche mobs, one for each phase of the fight. His second form isn't spawned, and is considered "dead", until the first form is killed. Because only the second form is marked as the win condition, win conditions are triggered as soon as you enter. If both forms are set as required, win conditions are triggered after the first form before the second form spawns. #6299 should fix these issues

from darkstar.

Doytoend avatar Doytoend commented on June 2, 2024

Suggest changing killedallmobs to false and then change the for loop checking the mobs alive status

    for _, mob in pairs(mobs) do
        if mob:isAlive()  then
            killedallmobs = false
            break
         elseif mob:isDead() then
           killedallmobs = true
        end
    end

from darkstar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.