Scripts/Icecrown Citadel:
* Mark of the Fallen Champion should be a debuff * Fixed periodic damage taken from Twisted Nightmare on heroic difficulties of Valithria Dreamwalker encounter
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_dreamwalker_twisted_nightmares';
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||||
|
(71941, 'spell_dreamwalker_twisted_nightmares');
|
||||||
@@ -2852,6 +2852,9 @@ void SpellMgr::LoadSpellCustomAttr()
|
|||||||
spellInfo->AttributesCu |= SPELL_ATTR0_CU_SHARE_DAMAGE;
|
spellInfo->AttributesCu |= SPELL_ATTR0_CU_SHARE_DAMAGE;
|
||||||
spellInfo->AttributesCu |= SPELL_ATTR0_CU_IGNORE_ARMOR;
|
spellInfo->AttributesCu |= SPELL_ATTR0_CU_IGNORE_ARMOR;
|
||||||
break;
|
break;
|
||||||
|
case 72293: // Mark of the Fallen Champion (Deathbringer Saurfang)
|
||||||
|
spellInfo->AttributesCu |= SPELL_ATTR0_CU_NEGATIVE_EFF0;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1339,6 +1339,38 @@ class spell_dreamwalker_nightmare_cloud : public SpellScriptLoader
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class spell_dreamwalker_twisted_nightmares : public SpellScriptLoader
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
spell_dreamwalker_twisted_nightmares() : SpellScriptLoader("spell_dreamwalker_twisted_nightmares") { }
|
||||||
|
|
||||||
|
class spell_dreamwalker_twisted_nightmares_SpellScript : public SpellScript
|
||||||
|
{
|
||||||
|
PrepareSpellScript(spell_dreamwalker_twisted_nightmares_SpellScript);
|
||||||
|
|
||||||
|
void HandleScript(SpellEffIndex effIndex)
|
||||||
|
{
|
||||||
|
PreventHitDefaultEffect(effIndex);
|
||||||
|
// impossible with TARGET_UNIT_CASTER
|
||||||
|
//if (!GetHitUnit())
|
||||||
|
// return;
|
||||||
|
|
||||||
|
if (InstanceScript* instance = GetHitUnit()->GetInstanceScript())
|
||||||
|
GetHitUnit()->CastSpell((Unit*)NULL, GetSpellInfo()->Effects[effIndex].TriggerSpell, true, NULL, NULL, instance->GetData64(DATA_VALITHRIA_DREAMWALKER));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register()
|
||||||
|
{
|
||||||
|
OnEffect += SpellEffectFn(spell_dreamwalker_twisted_nightmares_SpellScript::HandleScript, EFFECT_2, SPELL_EFFECT_FORCE_CAST);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
SpellScript* GetSpellScript() const
|
||||||
|
{
|
||||||
|
return new spell_dreamwalker_twisted_nightmares_SpellScript();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
class achievement_portal_jockey : public AchievementCriteriaScript
|
class achievement_portal_jockey : public AchievementCriteriaScript
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -1369,5 +1401,6 @@ void AddSC_boss_valithria_dreamwalker()
|
|||||||
new spell_dreamwalker_summon_dream_portal();
|
new spell_dreamwalker_summon_dream_portal();
|
||||||
new spell_dreamwalker_summon_nightmare_portal();
|
new spell_dreamwalker_summon_nightmare_portal();
|
||||||
new spell_dreamwalker_nightmare_cloud();
|
new spell_dreamwalker_nightmare_cloud();
|
||||||
|
new spell_dreamwalker_twisted_nightmares();
|
||||||
new achievement_portal_jockey();
|
new achievement_portal_jockey();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user