fix(Scripts/TheEye): increase dagger proc chance and make sure mind control only targets players (#18563)

This commit is contained in:
Dan
2024-03-16 21:28:40 +01:00
committed by GitHub
parent 452ca39249
commit 42c41525de
3 changed files with 5 additions and 6 deletions

View File

@@ -0,0 +1,2 @@
--
UPDATE `item_template` SET `spellppmRate_2` = 60 WHERE `entry` = 30312;

View File

@@ -4648,12 +4648,6 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->AttributesEx2 |= SPELL_ATTR2_IGNORE_LINE_OF_SIGHT;
});
// Magic Disruption (KT dagger)
ApplySpellFix({ 36478 }, [](SpellInfo* spellInfo)
{
spellInfo->ProcChance = 100;
});
// Commanding Shout
ApplySpellFix({ 469, 47439, 47440 }, [](SpellInfo* spellInfo)
{

View File

@@ -1159,7 +1159,10 @@ class spell_kaelthas_mind_control : public SpellScript
void SelectTarget(std::list<WorldObject*>& targets)
{
if (Unit* victim = GetCaster()->GetVictim())
{
targets.remove_if(Acore::ObjectGUIDCheck(victim->GetGUID(), true));
}
targets.remove_if(Acore::ObjectTypeIdCheck(TYPEID_PLAYER, false));
}
void Register() override