aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-02-13 22:08:49 +0100
committerTreeston <treeston.mmoc@gmail.com>2018-02-13 22:08:49 +0100
commitf071fa9e931533c28e6b9d8b0e38ed8878ce2b45 (patch)
tree9cd6ef4d846798f6e959111ab912eba23848a130 /src/server/game/AI/SmartScripts
parent2cd5992f37fe386786ddd906cd4dd691125ad2b6 (diff)
Entities/GO: GameObjects now support (delayed) despawning in a reasonable manner. Closes #21406.
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index 6de2dea4d71..b3e7c9d5e5c 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -1047,7 +1047,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
creature->DespawnOrUnsummon(respawnDelay);
}
else if (GameObject* goTarget = target->ToGameObject())
- goTarget->SetRespawnTime(respawnDelay);
+ goTarget->DespawnOrUnsummon(Milliseconds(respawnDelay));
}
break;
}