Scripts/Deadmines: fixed placing shapeshifted players into the Slagworks trap at Vanessa VanCleef's encounter and fixed an issue that was preventing Vanessa's encounter from resetting properly when dying during her real fight

This commit is contained in:
Ovahlord committed 2019-05-05 17:28:28 +02:00
1 parent 7163355bde
commit f0f72c74c0
2 files changed
+3 -2

No files matched your search

@@ -216,6 +216,7 @@ class boss_vanessa_van_cleef : public CreatureScript
_EnterEvadeMode();
summons.DespawnAll();
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
instance->SetBossState(DATA_VANESSA_VAN_CLEEF, FAIL);
_DespawnAtEvade();
}
@@ -620,8 +620,8 @@ class spell_deadmines_ride_magma_vehicle : public SpellScriptLoader
void HandleHit(SpellEffIndex effIndex)
{
if (Unit* caster = GetCaster())
GetHitUnit()->CastSpell(GetHitUnit(), GetSpellInfo()->Effects[effIndex].BasePoints);
Unit* target = GetHitUnit();
target->CastSpell(target, GetSpellInfo()->Effects[effIndex].BasePoints, true);
}
void Register() override