aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Outland')
-rw-r--r--src/server/scripts/Outland/netherstorm.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/server/scripts/Outland/netherstorm.cpp b/src/server/scripts/Outland/netherstorm.cpp
index f892169f7ae..e5ee8d19c59 100644
--- a/src/server/scripts/Outland/netherstorm.cpp
+++ b/src/server/scripts/Outland/netherstorm.cpp
@@ -1066,16 +1066,12 @@ class go_captain_tyralius_prison : public GameObjectScript
{
if (Creature* tyralius = go->FindNearestCreature(NPC_CAPTAIN_TYRALIUS, 1.0f))
{
- if (tyralius)
- {
- go->UseDoorOrButton();
+ go->UseDoorOrButton();
- if (player)
- player->KilledMonsterCredit(NPC_CAPTAIN_TYRALIUS, 0);
+ player->KilledMonsterCredit(NPC_CAPTAIN_TYRALIUS, 0);
- tyralius->AI()->Talk(SAY_FREE);
- tyralius->ForcedDespawn(8000);
- }
+ tyralius->AI()->Talk(SAY_FREE);
+ tyralius->ForcedDespawn(8000);
}
return true;
}