aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-17 01:01:39 -0500
committermegamage <none@none>2009-06-17 01:01:39 -0500
commitc6765f9365126fbe90d66ca36e2d766a734ce4bb (patch)
treea5864e4155f4160c3cdee55d814e2c7464a89fd4 /src/bindings/scripts
parent30195348ac7e004acf84043c5bf9f1c70f19755e (diff)
*Allow to force to respawn creatures.
*Save creature data for vehicles. *Change some visibility update sequence of respawned creatures. *Fix bugs of quest 12687: dark rider may not be on horse / horse cannot be used twice / horse does not respawn at correct phase --HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts')
-rw-r--r--src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
index 066c401049f..3e7137094d2 100644
--- a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
+++ b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
@@ -532,9 +532,7 @@ struct TRINITY_DLL_DECL npc_salanar_the_horsemanAI : public ScriptedAI
return;
}
CAST_PLR(charmer)->ExitVehicle();
- //without this we can see npc kill the horse
- who->setDeathState(DEAD);
- CAST_CRE(who)->Respawn();
+ CAST_CRE(who)->Respawn(true);
}
}
}
@@ -554,18 +552,6 @@ struct TRINITY_DLL_DECL npc_ros_dark_riderAI : public ScriptedAI
{
npc_ros_dark_riderAI(Creature *c) : ScriptedAI(c) {}
- void MoveInLineOfSight(Unit *who)
- {
- if(me->getVictim())
- return;
-
- // this should be before next one otherwise he may enter vehicle again
- if(!me->m_Vehicle && who->GetEntry() == 28782 && CAST_CRE(who)->isVehicle() && CAST_VEH(who)->HasEmptySeat(0))
- me->EnterVehicle(CAST_VEH(who));
-
- ScriptedAI::MoveInLineOfSight(who);
- }
-
void EnterCombat(Unit *who)
{
me->ExitVehicle();