mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-13 11:34:07 -04:00
Core/Spells: Remove outdated code for Wild Hunt
This commit is contained in:
@@ -1064,18 +1064,6 @@ bool Guardian::UpdateStats(Stats stat)
|
||||
else
|
||||
{
|
||||
mod = 0.45f;
|
||||
if (isPet())
|
||||
{
|
||||
PetSpellMap::const_iterator itr = (ToPet()->m_spells.find(62758)); // Wild Hunt rank 1
|
||||
if (itr == ToPet()->m_spells.end())
|
||||
itr = ToPet()->m_spells.find(62762); // Wild Hunt rank 2
|
||||
|
||||
if (itr != ToPet()->m_spells.end()) // If pet has Wild Hunt
|
||||
{
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(itr->first); // Then get the SpellProto and add the dummy effect value
|
||||
AddPctN(mod, spellInfo->Effects[EFFECT_0].CalcValue());
|
||||
}
|
||||
}
|
||||
ownersBonus = float(owner->GetStat(stat)) * mod;
|
||||
value += ownersBonus;
|
||||
}
|
||||
@@ -1233,19 +1221,6 @@ void Guardian::UpdateAttackPowerAndDamage(bool ranged)
|
||||
if (isHunterPet()) //hunter pets benefit from owner's attack power
|
||||
{
|
||||
float mod = 1.0f; //Hunter contribution modifier
|
||||
if (isPet())
|
||||
{
|
||||
PetSpellMap::const_iterator itr = ToPet()->m_spells.find(62758); //Wild Hunt rank 1
|
||||
if (itr == ToPet()->m_spells.end())
|
||||
itr = ToPet()->m_spells.find(62762); //Wild Hunt rank 2
|
||||
|
||||
if (itr != ToPet()->m_spells.end()) // If pet has Wild Hunt
|
||||
{
|
||||
SpellInfo const* sProto = sSpellMgr->GetSpellInfo(itr->first); // Then get the SpellProto and add the dummy effect value
|
||||
mod += CalculatePctN(1.0f, sProto->Effects[1].CalcValue());
|
||||
}
|
||||
}
|
||||
|
||||
bonusAP = owner->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.22f * mod;
|
||||
SetBonusDamage(int32(owner->GetTotalAttackPowerValue(RANGED_ATTACK) * 0.1287f * mod));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user