spell hunter Scent of Blood
This commit is contained in:
@@ -125,6 +125,8 @@ enum HunterSpells
|
||||
SPELL_HUNTER_CHAKRAMS_DAMAGE = 259396, // Damage spell
|
||||
SPELL_HUNTER_ASPECT_OF_THE_HYDRA = 470945,
|
||||
SPELL_HUNTER_ARCANE_SHOT = 185358,
|
||||
SPELL_HUNTER_BARBED_SHOT = 217200,
|
||||
SPELL_HUNTER_SCENT_OF_BLOOD = 193532,
|
||||
};
|
||||
|
||||
enum MiscSpells
|
||||
@@ -1671,7 +1673,7 @@ class spell_hun_bestial_wrath : public SpellScript
|
||||
{
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_HUNTER_BESTIAL_WRATH_DAMAGE });
|
||||
return ValidateSpellInfo({ SPELL_HUNTER_BESTIAL_WRATH_DAMAGE, SPELL_HUNTER_BARBED_SHOT, SPELL_HUNTER_SCENT_OF_BLOOD });
|
||||
}
|
||||
|
||||
SpellCastResult CheckCast()
|
||||
@@ -1718,6 +1720,10 @@ class spell_hun_bestial_wrath : public SpellScript
|
||||
|
||||
if (target && pet->IsValidAttackTarget(target) && pet->IsWithinLOSInMap(target))
|
||||
pet->CastSpell(target, SPELL_HUNTER_BESTIAL_WRATH_DAMAGE, true);
|
||||
|
||||
// 193532 - Scent of Blood: Activating Bestial Wrath grants 1 charge of Barbed Shot
|
||||
if (player->HasAura(SPELL_HUNTER_SCENT_OF_BLOOD))
|
||||
player->GetSpellHistory()->RestoreCharge(sSpellMgr->AssertSpellInfo(SPELL_HUNTER_BARBED_SHOT, GetCastDifficulty())->ChargeCategoryId);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user