Jump to content
  • Sign in to follow this  

    there is mistake to get stamina of Hunter`s Pet


    磊 翟
    • Main Category: Core / Mangos Daemon
      Sub-Category: Pet
      Version: 21.14 (Master Branch)
      Related to:

    ----------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.

     

     

    Sign in to follow this  


    User Feedback

    Recommended Comments

    There are no comments to display.



    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

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×
×
  • Create New...