mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-07 04:47:45 +00:00
fix(Scripts/TheEye): increase dagger proc chance and make sure mind control only targets players (#18563)
This commit is contained in:
2
data/sql/updates/pending_db_world/fix_dagger_proc.sql
Normal file
2
data/sql/updates/pending_db_world/fix_dagger_proc.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
--
|
||||||
|
UPDATE `item_template` SET `spellppmRate_2` = 60 WHERE `entry` = 30312;
|
||||||
@@ -4648,12 +4648,6 @@ void SpellMgr::LoadSpellInfoCorrections()
|
|||||||
spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT;
|
spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Magic Disruption (KT dagger)
|
|
||||||
ApplySpellFix({ 36478 }, [](SpellInfo* spellInfo)
|
|
||||||
{
|
|
||||||
spellInfo->ProcChance = 100;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Commanding Shout
|
// Commanding Shout
|
||||||
ApplySpellFix({ 469, 47439, 47440 }, [](SpellInfo* spellInfo)
|
ApplySpellFix({ 469, 47439, 47440 }, [](SpellInfo* spellInfo)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1159,7 +1159,10 @@ class spell_kaelthas_mind_control : public SpellScript
|
|||||||
void SelectTarget(std::list<WorldObject*>& targets)
|
void SelectTarget(std::list<WorldObject*>& targets)
|
||||||
{
|
{
|
||||||
if (Unit* victim = GetCaster()->GetVictim())
|
if (Unit* victim = GetCaster()->GetVictim())
|
||||||
|
{
|
||||||
targets.remove_if(Acore::ObjectGUIDCheck(victim->GetGUID(), true));
|
targets.remove_if(Acore::ObjectGUIDCheck(victim->GetGUID(), true));
|
||||||
|
}
|
||||||
|
targets.remove_if(Acore::ObjectTypeIdCheck(TYPEID_PLAYER, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Register() override
|
void Register() override
|
||||||
|
|||||||
Reference in New Issue
Block a user