mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
fix(Core/Item): Renataki's Charm of Beasts (#13124)
This commit is contained in:
@@ -4391,6 +4391,12 @@ void SpellMgr::LoadSpellInfoCorrections()
|
||||
spellInfo->SpellFamilyName = SPELLFAMILY_POTION;
|
||||
});
|
||||
|
||||
// Refocus (Renataki's charm of beasts)
|
||||
ApplySpellFix({ 24531 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
spellInfo->Effects[EFFECT_0].TargetA = SpellImplicitTargetInfo(TARGET_UNIT_CASTER);
|
||||
});
|
||||
|
||||
// Collect Rookery Egg
|
||||
ApplySpellFix({ 15958 }, [](SpellInfo* spellInfo)
|
||||
{
|
||||
|
||||
@@ -3403,9 +3403,7 @@ class spell_item_chicken_cover : public SpellScript
|
||||
|
||||
enum Refocus
|
||||
{
|
||||
SPELL_AIMED_SHOT = 19434,
|
||||
SPELL_MULTISHOT = 2643,
|
||||
SPELL_VOLLEY = 42243,
|
||||
SPELL_CATEGORY_AIMED_MULTI = 85
|
||||
};
|
||||
|
||||
class spell_item_refocus : public SpellScript
|
||||
@@ -3419,9 +3417,7 @@ class spell_item_refocus : public SpellScript
|
||||
if (!caster || caster->getClass() != CLASS_HUNTER)
|
||||
return;
|
||||
|
||||
caster->RemoveSpellCooldown(SPELL_AIMED_SHOT, true);
|
||||
caster->RemoveSpellCooldown(SPELL_MULTISHOT, true);
|
||||
caster->RemoveSpellCooldown(SPELL_VOLLEY, true);
|
||||
caster->RemoveCategoryCooldown(SPELL_CATEGORY_AIMED_MULTI);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user