Skip to content

[Herbalism] don't remove Lifeblood #17

Open
@r0m1ntik

Description

@r0m1ntik

On remove profession Herbalism , Lifeblood not removed.

in

void Player::SetSkill(uint32 id, uint16 step, uint16 newVal, uint16 maxVal)

Remove if have first rank, but have just (rank 6)

// remove all spells that related to this skill
for (uint32 j = 0; j < sSkillLineAbilityStore.GetNumRows(); ++j)
    if (SkillLineAbilityEntry const* pAbility = sSkillLineAbilityStore.LookupEntry(j))
        if (pAbility->SkillLine == id)
            RemoveSpell(sSpellMgr->GetFirstSpellInChain(pAbility->Spell));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions