Jump to content

HP negative when dead


Go to solution Solved by Chookez,

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

char_battle.cpp

Search:

    if (!cannot_dead)
    {
        PointChange(POINT_HP, -dam, false);
    }

Change:

    if (!cannot_dead)
    {
        if (GetHP() - dam <= 0)
            dam = GetHP();

        PointChange(POINT_HP, -dam, false);
    }

Borrowed from MARTY's source.

Link to comment
Share on other sites

20 minutes ago, Chookez said:

char_battle.cpp

Search:

    if (!cannot_dead)
    {
        PointChange(POINT_HP, -dam, false);
    }

Change:

    if (!cannot_dead)
    {
        if (GetHP() - dam <= 0)
            dam = GetHP();

        PointChange(POINT_HP, -dam, false);
    }

Borrowed from MARTY's source.

Working perfect. Thank you 😀

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.