diff --git a/WorldObjectMethods.h b/WorldObjectMethods.h index 58cc63a..f52b804 100644 --- a/WorldObjectMethods.h +++ b/WorldObjectMethods.h @@ -804,7 +804,11 @@ namespace LuaWorldObject default: return luaL_argerror(L, 7, "valid SpawnType expected"); } +#ifdef TRINITY Eluna::Push(L, obj->SummonCreature(entry, x, y, z, o, type, Seconds(despawnTimer))); +#else + Eluna::Push(L, obj->SummonCreature(entry, x, y, z, o, type, despawnTimer)); +#endif return 1; }