Jump to content
  • there is mistake to get stamina of Hunter`s Pet


    翟 磊
    • Status: Confirmed
      Main Category: Core / Mangos Daemon
      Sub-Category: Code Enhancement
      Version: 21.14

    ----------StatSystem.cpp

    void Pet::UpdateMaxHealth()
    {
        UnitMods unitMod = UNIT_MOD_HEALTH;
    
        float stamina = GetStat(STAT_STAMINA) - GetCreateStat(STAT_STAMINA);
    
        float value   = GetModifierValue(unitMod, BASE_VALUE) + GetCreateHealth();
        value  *= GetModifierValue(unitMod, BASE_PCT);
        value  += GetModifierValue(unitMod, TOTAL_VALUE) + stamina * 10.0f;
        value  *= GetModifierValue(unitMod, TOTAL_PCT);
    
        SetMaxHealth((uint32)value);
    }

    If Hunter equip itemset:206

    The sepll id:21926

    In this func:

    GetStat(STAT_STAMINA)

    will take turns get the 2 diffrent value in 3 seconds.

    So that the Pet`s Health was always changed.

     

     


    User Feedback

    Recommended Comments



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use